diff options
Diffstat (limited to 'src/examples/timeout.c')
-rw-r--r-- | src/examples/timeout.c | 10 |
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 | ||
60 | int | 67 | int |
61 | main (int argc, | 68 | main (void) |
62 | char **argv) | ||
63 | { | 69 | { |
64 | struct MHD_Daemon *daemon; | 70 | struct MHD_Daemon *daemon; |
65 | 71 | ||