diff options
Diffstat (limited to 'src/testcurl/test_get_wait.c')
-rw-r--r-- | src/testcurl/test_get_wait.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/testcurl/test_get_wait.c b/src/testcurl/test_get_wait.c index 708c82bd..b2938fdf 100644 --- a/src/testcurl/test_get_wait.c +++ b/src/testcurl/test_get_wait.c | |||
@@ -89,12 +89,12 @@ ahc_echo (void *cls, | |||
89 | void **req_cls) | 89 | void **req_cls) |
90 | { | 90 | { |
91 | static int ptr; | 91 | static int ptr; |
92 | const char *me = cls; | ||
93 | enum MHD_Result ret; | 92 | enum MHD_Result ret; |
93 | (void) cls; | ||
94 | (void) url; (void) version; /* Unused. Silent compiler warning. */ | 94 | (void) url; (void) version; /* Unused. Silent compiler warning. */ |
95 | (void) upload_data; (void) upload_data_size; /* Unused. Silent compiler warning. */ | 95 | (void) upload_data; (void) upload_data_size; /* Unused. Silent compiler warning. */ |
96 | 96 | ||
97 | if (0 != strcmp (me, method)) | 97 | if (0 != strcmp (MHD_HTTP_METHOD_GET, method)) |
98 | return MHD_NO; /* unexpected method */ | 98 | return MHD_NO; /* unexpected method */ |
99 | if (&ptr != *req_cls) | 99 | if (&ptr != *req_cls) |
100 | { | 100 | { |
@@ -176,7 +176,7 @@ testRunWaitGet (int port, int poll_flag) | |||
176 | test_desc); | 176 | test_desc); |
177 | signal_done = 0; | 177 | signal_done = 0; |
178 | d = MHD_start_daemon (MHD_USE_ERROR_LOG | poll_flag, | 178 | d = MHD_start_daemon (MHD_USE_ERROR_LOG | poll_flag, |
179 | port, NULL, NULL, &ahc_echo, "GET", MHD_OPTION_END); | 179 | port, NULL, NULL, &ahc_echo, NULL, MHD_OPTION_END); |
180 | if (d == NULL) | 180 | if (d == NULL) |
181 | abort (); | 181 | abort (); |
182 | if (0 == port) | 182 | if (0 == port) |
@@ -224,9 +224,8 @@ main (int argc, char *const *argv) | |||
224 | port += 5; | 224 | port += 5; |
225 | if (0 != curl_global_init (CURL_GLOBAL_WIN32)) | 225 | if (0 != curl_global_init (CURL_GLOBAL_WIN32)) |
226 | return 2; | 226 | return 2; |
227 | response = MHD_create_response_from_buffer (strlen ("/hello_world"), | 227 | response = MHD_create_response_from_buffer_static (strlen ("/hello_world"), |
228 | "/hello_world", | 228 | "/hello_world"); |
229 | MHD_RESPMEM_MUST_COPY); | ||
230 | testRunWaitGet (port++, 0); | 229 | testRunWaitGet (port++, 0); |
231 | if (MHD_YES == MHD_is_feature_supported (MHD_FEATURE_EPOLL)) | 230 | if (MHD_YES == MHD_is_feature_supported (MHD_FEATURE_EPOLL)) |
232 | testRunWaitGet (port++, MHD_USE_EPOLL); | 231 | testRunWaitGet (port++, MHD_USE_EPOLL); |