mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
cast intentionally ignored return values to void, even in examples
This commit is contained in:
@@ -76,7 +76,7 @@ main ()
|
||||
if (NULL == daemon)
|
||||
return 1;
|
||||
|
||||
getchar ();
|
||||
(void) getchar ();
|
||||
|
||||
MHD_stop_daemon (daemon);
|
||||
return 0;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -236,7 +236,7 @@ main ()
|
||||
NULL, MHD_OPTION_END);
|
||||
if (NULL == daemon)
|
||||
return 1;
|
||||
getchar ();
|
||||
(void) getchar ();
|
||||
MHD_stop_daemon (daemon);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -77,7 +77,7 @@ main ()
|
||||
if (NULL == daemon)
|
||||
return 1;
|
||||
|
||||
getchar ();
|
||||
(void) getchar ();
|
||||
|
||||
MHD_stop_daemon (daemon);
|
||||
|
||||
|
||||
@@ -185,7 +185,7 @@ main ()
|
||||
if (NULL == daemon)
|
||||
return 1;
|
||||
|
||||
getchar ();
|
||||
(void) getchar ();
|
||||
|
||||
MHD_stop_daemon (daemon);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user