cast intentionally ignored return values to void, even in examples

This commit is contained in:
Christian Grothoff
2013-06-21 17:55:34 +00:00
parent fa4eac79bc
commit 14dad00f46
6 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ main ()
if (NULL == daemon)
return 1;
getchar ();
(void) getchar ();
MHD_stop_daemon (daemon);
return 0;
+2 -1
View File
@@ -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;
+1 -1
View File
@@ -236,7 +236,7 @@ main ()
NULL, MHD_OPTION_END);
if (NULL == daemon)
return 1;
getchar ();
(void) getchar ();
MHD_stop_daemon (daemon);
return 0;
}
+3 -1
View File
@@ -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;
+1 -1
View File
@@ -77,7 +77,7 @@ main ()
if (NULL == daemon)
return 1;
getchar ();
(void) getchar ();
MHD_stop_daemon (daemon);
+1 -1
View File
@@ -185,7 +185,7 @@ main ()
if (NULL == daemon)
return 1;
getchar ();
(void) getchar ();
MHD_stop_daemon (daemon);