diff options
Diffstat (limited to 'src/testcurl/test_get_close_keep_alive.c')
-rw-r--r-- | src/testcurl/test_get_close_keep_alive.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testcurl/test_get_close_keep_alive.c b/src/testcurl/test_get_close_keep_alive.c index 2fca0ce3..1cb46e68 100644 --- a/src/testcurl/test_get_close_keep_alive.c +++ b/src/testcurl/test_get_close_keep_alive.c | |||
@@ -312,7 +312,7 @@ ahc_echo (void *cls, | |||
312 | const char *method, | 312 | const char *method, |
313 | const char *version, | 313 | const char *version, |
314 | const char *upload_data, size_t *upload_data_size, | 314 | const char *upload_data, size_t *upload_data_size, |
315 | void **unused) | 315 | void **req_cls) |
316 | { | 316 | { |
317 | static int ptr; | 317 | static int ptr; |
318 | const char *me = cls; | 318 | const char *me = cls; |
@@ -324,12 +324,12 @@ ahc_echo (void *cls, | |||
324 | 324 | ||
325 | if (0 != strcmp (me, method)) | 325 | if (0 != strcmp (me, method)) |
326 | return MHD_NO; /* unexpected method */ | 326 | return MHD_NO; /* unexpected method */ |
327 | if (&ptr != *unused) | 327 | if (&ptr != *req_cls) |
328 | { | 328 | { |
329 | *unused = &ptr; | 329 | *req_cls = &ptr; |
330 | return MHD_YES; | 330 | return MHD_YES; |
331 | } | 331 | } |
332 | *unused = NULL; | 332 | *req_cls = NULL; |
333 | if (slow_reply) | 333 | if (slow_reply) |
334 | usleep (200000); | 334 | usleep (200000); |
335 | 335 | ||