diff options
Diffstat (limited to 'src/examples/minimal_example_comet.c')
-rw-r--r-- | src/examples/minimal_example_comet.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/examples/minimal_example_comet.c b/src/examples/minimal_example_comet.c index d689212c..c4a3395d 100644 --- a/src/examples/minimal_example_comet.c +++ b/src/examples/minimal_example_comet.c | |||
@@ -28,6 +28,8 @@ | |||
28 | static ssize_t | 28 | static ssize_t |
29 | data_generator (void *cls, uint64_t pos, char *buf, size_t max) | 29 | data_generator (void *cls, uint64_t pos, char *buf, size_t max) |
30 | { | 30 | { |
31 | (void)cls; /* Unused. Silent compiler warning. */ | ||
32 | (void)pos; /* Unused. Silent compiler warning. */ | ||
31 | if (max < 80) | 33 | if (max < 80) |
32 | return 0; | 34 | return 0; |
33 | memset (buf, 'A', max - 1); | 35 | memset (buf, 'A', max - 1); |
@@ -46,6 +48,11 @@ ahc_echo (void *cls, | |||
46 | static int aptr; | 48 | static int aptr; |
47 | struct MHD_Response *response; | 49 | struct MHD_Response *response; |
48 | int ret; | 50 | int ret; |
51 | (void)cls; /* Unused. Silent compiler warning. */ | ||
52 | (void)url; /* Unused. Silent compiler warning. */ | ||
53 | (void)version; /* Unused. Silent compiler warning. */ | ||
54 | (void)upload_data; /* Unused. Silent compiler warning. */ | ||
55 | (void)upload_data_size; /* Unused. Silent compiler warning. */ | ||
49 | 56 | ||
50 | if (0 != strcmp (method, "GET")) | 57 | if (0 != strcmp (method, "GET")) |
51 | return MHD_NO; /* unexpected method */ | 58 | return MHD_NO; /* unexpected method */ |