libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 351d8a65d69cc1cace3e4f9186a296d18f2ac0cf
parent 33b4a2d9974b187b59b2cc1883ba6723f1e52742
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Sat, 23 Apr 2022 14:01:54 +0300

Fixed old-style functions definitions

Diffstat:
Mdoc/examples/largepost.c | 2+-
Mdoc/examples/logging.c | 2+-
Mdoc/examples/responseheaders.c | 2+-
Mdoc/examples/sessions.c | 2+-
Mdoc/examples/simplepost.c | 2+-
Mdoc/examples/tlsauthentication.c | 2+-
Msrc/examples/demo.c | 4++--
Msrc/examples/demo_https.c | 2+-
Msrc/examples/post_example.c | 2+-
9 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/doc/examples/largepost.c b/doc/examples/largepost.c @@ -328,7 +328,7 @@ answer_to_connection (void *cls, int -main () +main (void) { struct MHD_Daemon *daemon; diff --git a/doc/examples/logging.c b/doc/examples/logging.c @@ -46,7 +46,7 @@ answer_to_connection (void *cls, struct MHD_Connection *connection, int -main () +main (void) { struct MHD_Daemon *daemon; diff --git a/doc/examples/responseheaders.c b/doc/examples/responseheaders.c @@ -73,7 +73,7 @@ answer_to_connection (void *cls, struct MHD_Connection *connection, int -main () +main (void) { struct MHD_Daemon *daemon; diff --git a/doc/examples/sessions.c b/doc/examples/sessions.c @@ -693,7 +693,7 @@ request_completed_callback (void *cls, * too long. */ static void -expire_sessions () +expire_sessions (void) { struct Session *pos; struct Session *prev; diff --git a/doc/examples/simplepost.c b/doc/examples/simplepost.c @@ -192,7 +192,7 @@ answer_to_connection (void *cls, struct MHD_Connection *connection, int -main () +main (void) { struct MHD_Daemon *daemon; diff --git a/doc/examples/tlsauthentication.c b/doc/examples/tlsauthentication.c @@ -247,7 +247,7 @@ answer_to_connection (void *cls, struct MHD_Connection *connection, int -main () +main (void) { struct MHD_Daemon *daemon; char *key_pem; diff --git a/src/examples/demo.c b/src/examples/demo.c @@ -317,7 +317,7 @@ list_directory (struct ResponseDataContext *rdc, * Re-scan our local directory and re-build the index. */ static void -update_directory () +update_directory (void) { static size_t initial_allocation = 32 * 1024; /* initial size for response buffer */ struct MHD_Response *response; @@ -858,7 +858,7 @@ catcher (int sig) * setup handlers to ignore SIGPIPE. */ static void -ignore_sigpipe () +ignore_sigpipe (void) { struct sigaction oldsig; struct sigaction sig; diff --git a/src/examples/demo_https.c b/src/examples/demo_https.c @@ -319,7 +319,7 @@ list_directory (struct ResponseDataContext *rdc, * Re-scan our local directory and re-build the index. */ static void -update_directory () +update_directory (void) { static size_t initial_allocation = 32 * 1024; /* initial size for response buffer */ struct MHD_Response *response; diff --git a/src/examples/post_example.c b/src/examples/post_example.c @@ -690,7 +690,7 @@ request_completed_callback (void *cls, * too long. */ static void -expire_sessions () +expire_sessions (void) { struct Session *pos; struct Session *prev;