aboutsummaryrefslogtreecommitdiff
path: root/src/examples/timeout.c
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-09-29 13:29:23 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-09-29 22:07:49 +0300
commita5b63e992bb1d45982269cd4be4d8990414acc17 (patch)
treeb2ecaa5b0342c4745b3a91e2211f3b06dc0b82d0 /src/examples/timeout.c
parent527700a01e67e35781a4ba789a43e4d982dd5b25 (diff)
downloadlibmicrohttpd-a5b63e992bb1d45982269cd4be4d8990414acc17.tar.gz
libmicrohttpd-a5b63e992bb1d45982269cd4be4d8990414acc17.zip
Muted compiler warnings in examples.
Diffstat (limited to 'src/examples/timeout.c')
-rw-r--r--src/examples/timeout.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/examples/timeout.c b/src/examples/timeout.c
index e0e33560..b9569547 100644
--- a/src/examples/timeout.c
+++ b/src/examples/timeout.c
@@ -42,6 +42,13 @@ answer_to_connection(void *cls,
42 const char *page = "<html><body>Hello timeout!</body></html>"; 42 const char *page = "<html><body>Hello timeout!</body></html>";
43 struct MHD_Response *response; 43 struct MHD_Response *response;
44 int ret; 44 int ret;
45 (void)cls; /* Unused. Silent compiler warning. */
46 (void)url; /* Unused. Silent compiler warning. */
47 (void)version; /* Unused. Silent compiler warning. */
48 (void)method; /* Unused. Silent compiler warning. */
49 (void)upload_data; /* Unused. Silent compiler warning. */
50 (void)upload_data_size; /* Unused. Silent compiler warning. */
51 (void)con_cls; /* Unused. Silent compiler warning. */
45 52
46 response = MHD_create_response_from_buffer (strlen(page), 53 response = MHD_create_response_from_buffer (strlen(page),
47 (void *) page, 54 (void *) page,
@@ -58,8 +65,7 @@ answer_to_connection(void *cls,
58 65
59 66
60int 67int
61main (int argc, 68main (void)
62 char **argv)
63{ 69{
64 struct MHD_Daemon *daemon; 70 struct MHD_Daemon *daemon;
65 71