diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-06-21 17:55:34 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-06-21 17:55:34 +0000 |
commit | 14dad00f46a5a1d454097ee5480ab672c03e3871 (patch) | |
tree | c6e07b85865655bcb3677a1a89bb75699a4cd9ad | |
parent | fa4eac79bc83502c490b739c5d88c01022146ddf (diff) | |
download | libmicrohttpd-14dad00f46a5a1d454097ee5480ab672c03e3871.tar.gz libmicrohttpd-14dad00f46a5a1d454097ee5480ab672c03e3871.zip |
cast intentionally ignored return values to void, even in examples
-rw-r--r-- | doc/examples/basicauthentication.c | 2 | ||||
-rw-r--r-- | doc/examples/hellobrowser.c | 3 | ||||
-rw-r--r-- | doc/examples/largepost.c | 2 | ||||
-rw-r--r-- | doc/examples/logging.c | 4 | ||||
-rw-r--r-- | doc/examples/responseheaders.c | 2 | ||||
-rw-r--r-- | doc/examples/simplepost.c | 2 |
6 files changed, 9 insertions, 6 deletions
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 () | |||
76 | if (NULL == daemon) | 76 | if (NULL == daemon) |
77 | return 1; | 77 | return 1; |
78 | 78 | ||
79 | getchar (); | 79 | (void) getchar (); |
80 | 80 | ||
81 | MHD_stop_daemon (daemon); | 81 | MHD_stop_daemon (daemon); |
82 | return 0; | 82 | 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, | |||
33 | return ret; | 33 | return ret; |
34 | } | 34 | } |
35 | 35 | ||
36 | |||
36 | int | 37 | int |
37 | main () | 38 | main () |
38 | { | 39 | { |
@@ -43,7 +44,7 @@ main () | |||
43 | if (NULL == daemon) | 44 | if (NULL == daemon) |
44 | return 1; | 45 | return 1; |
45 | 46 | ||
46 | getchar (); | 47 | (void) getchar (); |
47 | 48 | ||
48 | MHD_stop_daemon (daemon); | 49 | MHD_stop_daemon (daemon); |
49 | return 0; | 50 | 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 () | |||
236 | NULL, MHD_OPTION_END); | 236 | NULL, MHD_OPTION_END); |
237 | if (NULL == daemon) | 237 | if (NULL == daemon) |
238 | return 1; | 238 | return 1; |
239 | getchar (); | 239 | (void) getchar (); |
240 | MHD_stop_daemon (daemon); | 240 | MHD_stop_daemon (daemon); |
241 | return 0; | 241 | return 0; |
242 | } | 242 | } |
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, | |||
22 | return MHD_YES; | 22 | return MHD_YES; |
23 | } | 23 | } |
24 | 24 | ||
25 | |||
25 | static int | 26 | static int |
26 | answer_to_connection (void *cls, struct MHD_Connection *connection, | 27 | answer_to_connection (void *cls, struct MHD_Connection *connection, |
27 | const char *url, const char *method, | 28 | const char *url, const char *method, |
@@ -36,6 +37,7 @@ answer_to_connection (void *cls, struct MHD_Connection *connection, | |||
36 | return MHD_NO; | 37 | return MHD_NO; |
37 | } | 38 | } |
38 | 39 | ||
40 | |||
39 | int | 41 | int |
40 | main () | 42 | main () |
41 | { | 43 | { |
@@ -46,7 +48,7 @@ main () | |||
46 | if (NULL == daemon) | 48 | if (NULL == daemon) |
47 | return 1; | 49 | return 1; |
48 | 50 | ||
49 | getchar (); | 51 | (void) getchar (); |
50 | 52 | ||
51 | MHD_stop_daemon (daemon); | 53 | MHD_stop_daemon (daemon); |
52 | return 0; | 54 | 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 () | |||
77 | if (NULL == daemon) | 77 | if (NULL == daemon) |
78 | return 1; | 78 | return 1; |
79 | 79 | ||
80 | getchar (); | 80 | (void) getchar (); |
81 | 81 | ||
82 | MHD_stop_daemon (daemon); | 82 | MHD_stop_daemon (daemon); |
83 | 83 | ||
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 () | |||
185 | if (NULL == daemon) | 185 | if (NULL == daemon) |
186 | return 1; | 186 | return 1; |
187 | 187 | ||
188 | getchar (); | 188 | (void) getchar (); |
189 | 189 | ||
190 | MHD_stop_daemon (daemon); | 190 | MHD_stop_daemon (daemon); |
191 | 191 | ||