aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_concurrent_stop.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/test_concurrent_stop.c')
-rw-r--r--src/testcurl/test_concurrent_stop.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/testcurl/test_concurrent_stop.c b/src/testcurl/test_concurrent_stop.c
index e427ea42..d40f911b 100644
--- a/src/testcurl/test_concurrent_stop.c
+++ b/src/testcurl/test_concurrent_stop.c
@@ -145,12 +145,12 @@ ahc_echo (void *cls,
145 void **req_cls) 145 void **req_cls)
146{ 146{
147 static int marker; 147 static int marker;
148 const char *me = cls;
149 enum MHD_Result ret; 148 enum MHD_Result ret;
149 (void) cls;
150 (void) url; (void) version; /* Unused. Silent compiler warning. */ 150 (void) url; (void) version; /* Unused. Silent compiler warning. */
151 (void) upload_data; (void) upload_data_size; /* Unused. Silent compiler warning. */ 151 (void) upload_data; (void) upload_data_size; /* Unused. Silent compiler warning. */
152 152
153 if (0 != strcmp (me, method)) 153 if (0 != strcmp (MHD_HTTP_METHOD_GET, method))
154 return MHD_NO; /* unexpected method */ 154 return MHD_NO; /* unexpected method */
155 if (&marker != *req_cls) 155 if (&marker != *req_cls)
156 { 156 {
@@ -273,7 +273,7 @@ testMultithreadedGet (int port,
273 | poll_flag, 273 | poll_flag,
274 port, 274 port,
275 NULL, NULL, 275 NULL, NULL,
276 &ahc_echo, "GET", 276 &ahc_echo, NULL,
277 MHD_OPTION_END); 277 MHD_OPTION_END);
278 if (d == NULL) 278 if (d == NULL)
279 return 16; 279 return 16;
@@ -318,7 +318,7 @@ testMultithreadedPoolGet (int port,
318 | poll_flag, 318 | poll_flag,
319 port, 319 port,
320 NULL, NULL, 320 NULL, NULL,
321 &ahc_echo, "GET", 321 &ahc_echo, NULL,
322 MHD_OPTION_THREAD_POOL_SIZE, MHD_CPU_COUNT, 322 MHD_OPTION_THREAD_POOL_SIZE, MHD_CPU_COUNT,
323 MHD_OPTION_END); 323 MHD_OPTION_END);
324 if (d == NULL) 324 if (d == NULL)
@@ -371,9 +371,8 @@ main (int argc, char *const *argv)
371 port += 5; 371 port += 5;
372 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 372 if (0 != curl_global_init (CURL_GLOBAL_WIN32))
373 return 2; 373 return 2;
374 response = MHD_create_response_from_buffer (strlen ("/hello_world"), 374 response = MHD_create_response_from_buffer_copy (strlen ("/hello_world"),
375 "/hello_world", 375 "/hello_world");
376 MHD_RESPMEM_MUST_COPY);
377 errorCount += testMultithreadedGet (port, 0); 376 errorCount += testMultithreadedGet (port, 0);
378 if (0 != port) 377 if (0 != port)
379 port++; 378 port++;