libmicrohttpd

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

commit 14dad00f46a5a1d454097ee5480ab672c03e3871
parent fa4eac79bc83502c490b739c5d88c01022146ddf
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri, 21 Jun 2013 17:55:34 +0000

cast intentionally ignored return values to void, even in examples

Diffstat:
Mdoc/examples/basicauthentication.c | 2+-
Mdoc/examples/hellobrowser.c | 3++-
Mdoc/examples/largepost.c | 2+-
Mdoc/examples/logging.c | 4+++-
Mdoc/examples/responseheaders.c | 2+-
Mdoc/examples/simplepost.c | 2+-
6 files changed, 9 insertions(+), 6 deletions(-)

diff --git 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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -185,7 +185,7 @@ main () if (NULL == daemon) return 1; - getchar (); + (void) getchar (); MHD_stop_daemon (daemon);