diff --git a/doc/examples/basicauthentication.c b/doc/examples/basicauthentication.c index 81a59ac0..407738be 100644 --- a/doc/examples/basicauthentication.c +++ b/doc/examples/basicauthentication.c @@ -76,7 +76,7 @@ main () if (NULL == daemon) return 1; - getchar (); + (void) getchar (); MHD_stop_daemon (daemon); return 0; diff --git a/doc/examples/hellobrowser.c b/doc/examples/hellobrowser.c index baf049c5..df38e72b 100644 --- a/doc/examples/hellobrowser.c +++ b/doc/examples/hellobrowser.c @@ -33,6 +33,7 @@ answer_to_connection (void *cls, struct MHD_Connection *connection, return ret; } + int main () { @@ -43,7 +44,7 @@ main () if (NULL == daemon) return 1; - getchar (); + (void) getchar (); MHD_stop_daemon (daemon); return 0; diff --git a/doc/examples/largepost.c b/doc/examples/largepost.c index 64d1e3f9..0b9de2d5 100644 --- a/doc/examples/largepost.c +++ b/doc/examples/largepost.c @@ -236,7 +236,7 @@ main () NULL, MHD_OPTION_END); if (NULL == daemon) return 1; - getchar (); + (void) getchar (); MHD_stop_daemon (daemon); return 0; } diff --git a/doc/examples/logging.c b/doc/examples/logging.c index 27545231..c896a7dd 100644 --- a/doc/examples/logging.c +++ b/doc/examples/logging.c @@ -22,6 +22,7 @@ print_out_key (void *cls, enum MHD_ValueKind kind, const char *key, return MHD_YES; } + static int answer_to_connection (void *cls, struct MHD_Connection *connection, const char *url, const char *method, @@ -36,6 +37,7 @@ answer_to_connection (void *cls, struct MHD_Connection *connection, return MHD_NO; } + int main () { @@ -46,7 +48,7 @@ main () if (NULL == daemon) return 1; - getchar (); + (void) getchar (); MHD_stop_daemon (daemon); return 0; diff --git a/doc/examples/responseheaders.c b/doc/examples/responseheaders.c index a56ccb21..ef6b7c45 100644 --- a/doc/examples/responseheaders.c +++ b/doc/examples/responseheaders.c @@ -77,7 +77,7 @@ main () if (NULL == daemon) return 1; - getchar (); + (void) getchar (); MHD_stop_daemon (daemon); diff --git a/doc/examples/simplepost.c b/doc/examples/simplepost.c index 11c8af54..c623cba2 100644 --- a/doc/examples/simplepost.c +++ b/doc/examples/simplepost.c @@ -185,7 +185,7 @@ main () if (NULL == daemon) return 1; - getchar (); + (void) getchar (); MHD_stop_daemon (daemon);