diff options
Diffstat (limited to 'src/examples/fileserver_example_dirs.c')
-rw-r--r-- | src/examples/fileserver_example_dirs.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/examples/fileserver_example_dirs.c b/src/examples/fileserver_example_dirs.c index 32110aa3..8c37f219 100644 --- a/src/examples/fileserver_example_dirs.c +++ b/src/examples/fileserver_example_dirs.c | |||
@@ -66,6 +66,7 @@ dir_reader (void *cls, uint64_t pos, char *buf, size_t max) | |||
66 | 66 | ||
67 | if (max < 512) | 67 | if (max < 512) |
68 | return 0; | 68 | return 0; |
69 | (void)pos; /* 'pos' is ignored as function return next one single entry per call. */ | ||
69 | do | 70 | do |
70 | { | 71 | { |
71 | e = readdir (dir); | 72 | e = readdir (dir); |
@@ -96,6 +97,10 @@ ahc_echo (void *cls, | |||
96 | DIR *dir; | 97 | DIR *dir; |
97 | struct stat buf; | 98 | struct stat buf; |
98 | char emsg[1024]; | 99 | char emsg[1024]; |
100 | (void)cls; /* Unused. Silent compiler warning. */ | ||
101 | (void)version; /* Unused. Silent compiler warning. */ | ||
102 | (void)upload_data; /* Unused. Silent compiler warning. */ | ||
103 | (void)upload_data_size; /* Unused. Silent compiler warning. */ | ||
99 | 104 | ||
100 | if (0 != strcmp (method, MHD_HTTP_METHOD_GET)) | 105 | if (0 != strcmp (method, MHD_HTTP_METHOD_GET)) |
101 | return MHD_NO; /* unexpected method */ | 106 | return MHD_NO; /* unexpected method */ |