diff options
Diffstat (limited to 'src/testcurl/test_get_wait.c')
-rw-r--r-- | src/testcurl/test_get_wait.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testcurl/test_get_wait.c b/src/testcurl/test_get_wait.c index 40fcaf6d..708c82bd 100644 --- a/src/testcurl/test_get_wait.c +++ b/src/testcurl/test_get_wait.c | |||
@@ -86,7 +86,7 @@ ahc_echo (void *cls, | |||
86 | const char *method, | 86 | const char *method, |
87 | const char *version, | 87 | const char *version, |
88 | const char *upload_data, size_t *upload_data_size, | 88 | const char *upload_data, size_t *upload_data_size, |
89 | void **unused) | 89 | void **req_cls) |
90 | { | 90 | { |
91 | static int ptr; | 91 | static int ptr; |
92 | const char *me = cls; | 92 | const char *me = cls; |
@@ -96,12 +96,12 @@ ahc_echo (void *cls, | |||
96 | 96 | ||
97 | if (0 != strcmp (me, method)) | 97 | if (0 != strcmp (me, method)) |
98 | return MHD_NO; /* unexpected method */ | 98 | return MHD_NO; /* unexpected method */ |
99 | if (&ptr != *unused) | 99 | if (&ptr != *req_cls) |
100 | { | 100 | { |
101 | *unused = &ptr; | 101 | *req_cls = &ptr; |
102 | return MHD_YES; | 102 | return MHD_YES; |
103 | } | 103 | } |
104 | *unused = NULL; | 104 | *req_cls = NULL; |
105 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); | 105 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); |
106 | if (ret == MHD_NO) | 106 | if (ret == MHD_NO) |
107 | abort (); | 107 | abort (); |