diff options
author | Andrew Clayton <a.clayton@nginx.com> | 2022-10-28 00:54:01 +0100 |
---|---|---|
committer | Andrew Clayton <a.clayton@nginx.com> | 2022-10-28 03:18:33 +0100 |
commit | 58248a6220540db89e69c928a5d8ad6be2a326fb (patch) | |
tree | 775d3765f01f75efa2922168d30e3f240194ed5c /src/test | |
parent | 8f0dd9478e164121e31bebaf1c10dd6e537d2918 (diff) | |
download | unit-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/test')
-rw-r--r-- | src/test/nxt_unit_websocket_chat.c | 2 | ||||
-rw-r--r-- | src/test/nxt_unit_websocket_echo.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/nxt_unit_websocket_chat.c b/src/test/nxt_unit_websocket_chat.c index 39f8a440..ec7c2cc3 100644 --- a/src/test/nxt_unit_websocket_chat.c +++ b/src/test/nxt_unit_websocket_chat.c @@ -201,7 +201,7 @@ ws_chat_close_handler(nxt_unit_request_info_t *req) int -main() +main(void) { nxt_unit_ctx_t *ctx; nxt_unit_init_t init; diff --git a/src/test/nxt_unit_websocket_echo.c b/src/test/nxt_unit_websocket_echo.c index 2a89cdc0..eab2e45f 100644 --- a/src/test/nxt_unit_websocket_echo.c +++ b/src/test/nxt_unit_websocket_echo.c @@ -83,7 +83,7 @@ ws_echo_websocket_handler(nxt_unit_websocket_frame_t *ws) int -main() +main(void) { nxt_unit_ctx_t *ctx; nxt_unit_init_t init; |