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>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user