diff options
Diffstat (limited to 'src/testcurl/test_get_chunked.c')
-rw-r--r-- | src/testcurl/test_get_chunked.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testcurl/test_get_chunked.c b/src/testcurl/test_get_chunked.c index 5a19a24e..876016cc 100644 --- a/src/testcurl/test_get_chunked.c +++ b/src/testcurl/test_get_chunked.c | |||
@@ -180,7 +180,7 @@ ahc_echo (void *cls, | |||
180 | const char *url, | 180 | const char *url, |
181 | const char *method, | 181 | const char *method, |
182 | const char *version, | 182 | const char *version, |
183 | const char *upload_data, size_t *upload_data_size, void **ptr) | 183 | const char *upload_data, size_t *upload_data_size, void **req_cls) |
184 | { | 184 | { |
185 | static int aptr; | 185 | static int aptr; |
186 | const char *me = cls; | 186 | const char *me = cls; |
@@ -194,10 +194,10 @@ ahc_echo (void *cls, | |||
194 | 194 | ||
195 | if (0 != strcmp (me, method)) | 195 | if (0 != strcmp (me, method)) |
196 | return MHD_NO; /* unexpected method */ | 196 | return MHD_NO; /* unexpected method */ |
197 | if (&aptr != *ptr) | 197 | if (&aptr != *req_cls) |
198 | { | 198 | { |
199 | /* do never respond on first call */ | 199 | /* do never respond on first call */ |
200 | *ptr = &aptr; | 200 | *req_cls = &aptr; |
201 | return MHD_YES; | 201 | return MHD_YES; |
202 | } | 202 | } |
203 | if (! resp_string) | 203 | if (! resp_string) |