diff options
Diffstat (limited to 'src/testcurl/test_get_response_cleanup.c')
-rw-r--r-- | src/testcurl/test_get_response_cleanup.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testcurl/test_get_response_cleanup.c b/src/testcurl/test_get_response_cleanup.c index efec5144..ededc88b 100644 --- a/src/testcurl/test_get_response_cleanup.c +++ b/src/testcurl/test_get_response_cleanup.c | |||
@@ -122,7 +122,7 @@ ahc_echo (void *cls, | |||
122 | const char *method, | 122 | const char *method, |
123 | const char *version, | 123 | const char *version, |
124 | const char *upload_data, size_t *upload_data_size, | 124 | const char *upload_data, size_t *upload_data_size, |
125 | void **unused) | 125 | void **req_cls) |
126 | { | 126 | { |
127 | static int ptr; | 127 | static int ptr; |
128 | const char *me = cls; | 128 | const char *me = cls; |
@@ -134,12 +134,12 @@ ahc_echo (void *cls, | |||
134 | // fprintf (stderr, "In CB: %s!\n", method); | 134 | // fprintf (stderr, "In CB: %s!\n", method); |
135 | if (0 != strcmp (me, method)) | 135 | if (0 != strcmp (me, method)) |
136 | return MHD_NO; /* unexpected method */ | 136 | return MHD_NO; /* unexpected method */ |
137 | if (&ptr != *unused) | 137 | if (&ptr != *req_cls) |
138 | { | 138 | { |
139 | *unused = &ptr; | 139 | *req_cls = &ptr; |
140 | return MHD_YES; | 140 | return MHD_YES; |
141 | } | 141 | } |
142 | *unused = NULL; | 142 | *req_cls = NULL; |
143 | response = MHD_create_response_from_callback (MHD_SIZE_UNKNOWN, | 143 | response = MHD_create_response_from_callback (MHD_SIZE_UNKNOWN, |
144 | 32 * 1024, | 144 | 32 * 1024, |
145 | &push_callback, | 145 | &push_callback, |