diff options
Diffstat (limited to 'doc/examples/logging.c')
-rw-r--r-- | doc/examples/logging.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/examples/logging.c b/doc/examples/logging.c index aff21426..239fbe7d 100644 --- a/doc/examples/logging.c +++ b/doc/examples/logging.c | |||
@@ -18,6 +18,8 @@ static int | |||
18 | print_out_key (void *cls, enum MHD_ValueKind kind, const char *key, | 18 | print_out_key (void *cls, enum MHD_ValueKind kind, const char *key, |
19 | const char *value) | 19 | const char *value) |
20 | { | 20 | { |
21 | (void)cls; /* Unused. Silent compiler warning. */ | ||
22 | (void)kind; /* Unused. Silent compiler warning. */ | ||
21 | printf ("%s: %s\n", key, value); | 23 | printf ("%s: %s\n", key, value); |
22 | return MHD_YES; | 24 | return MHD_YES; |
23 | } | 25 | } |
@@ -29,6 +31,11 @@ answer_to_connection (void *cls, struct MHD_Connection *connection, | |||
29 | const char *version, const char *upload_data, | 31 | const char *version, const char *upload_data, |
30 | size_t *upload_data_size, void **con_cls) | 32 | size_t *upload_data_size, void **con_cls) |
31 | { | 33 | { |
34 | (void)cls; /* Unused. Silent compiler warning. */ | ||
35 | (void)version; /* Unused. Silent compiler warning. */ | ||
36 | (void)upload_data; /* Unused. Silent compiler warning. */ | ||
37 | (void)upload_data_size; /* Unused. Silent compiler warning. */ | ||
38 | (void)con_cls; /* Unused. Silent compiler warning. */ | ||
32 | printf ("New %s request for %s using version %s\n", method, url, version); | 39 | printf ("New %s request for %s using version %s\n", method, url, version); |
33 | 40 | ||
34 | MHD_get_connection_values (connection, MHD_HEADER_KIND, print_out_key, | 41 | MHD_get_connection_values (connection, MHD_HEADER_KIND, print_out_key, |