summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_port.c
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2022-10-28 00:54:01 +0100
committerAndrew Clayton <a.clayton@nginx.com>2022-10-28 03:18:33 +0100
commit58248a6220540db89e69c928a5d8ad6be2a326fb (patch)
tree775d3765f01f75efa2922168d30e3f240194ed5c /src/nxt_port.c
parent8f0dd9478e164121e31bebaf1c10dd6e537d2918 (diff)
downloadunit-58248a6220540db89e69c928a5d8ad6be2a326fb.tar.gz
unit-58248a6220540db89e69c928a5d8ad6be2a326fb.tar.bz2
Fixed some function definitions.
Future releases of GCC will render function definitions like func() invalid by default. See the previous commit 09f88c9 ("Fixed main() prototypes in auto tests.") for details. Such functions should be defined like func(void) This is a good thing to do regardless of the upcoming GCC changes. Reviewed-by: Alejandro Colomar <alx@nginx.com> Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'src/nxt_port.c')
-rw-r--r--src/nxt_port.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_port.c b/src/nxt_port.c
index ed7050f3..b9964df4 100644
--- a/src/nxt_port.c
+++ b/src/nxt_port.c
@@ -144,14 +144,14 @@ nxt_port_release(nxt_task_t *task, nxt_port_t *port)
nxt_port_id_t
-nxt_port_get_next_id()
+nxt_port_get_next_id(void)
{
return nxt_atomic_fetch_add(&nxt_port_last_id, 1);
}
void
-nxt_port_reset_next_id()
+nxt_port_reset_next_id(void)
{
nxt_port_last_id = 1;
}