diff --git a/doc/examples/largepost.c b/doc/examples/largepost.c index b7cccc04..6cfaf833 100644 --- 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 index 0db2e2ef..2c2a3c3a 100644 --- 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 index 162e5e2d..ce8167f3 100644 --- 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 index 0fe143eb..5b4d4b45 100644 --- 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 index 51cf23c0..0faa0948 100644 --- 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 index 1898e730..3c39a0f5 100644 --- 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 index 5b3e75d1..1c24a57e 100644 --- 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 index cfd586ca..1a09d2c2 100644 --- 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 index 5df56afb..1134a331 100644 --- 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;