aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/perf_get.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/perf_get.c')
-rw-r--r--src/testcurl/perf_get.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testcurl/perf_get.c b/src/testcurl/perf_get.c
index 9a7e3e08..3ee1c388 100644
--- a/src/testcurl/perf_get.c
+++ b/src/testcurl/perf_get.c
@@ -168,7 +168,7 @@ ahc_echo (void *cls,
168 const char *method, 168 const char *method,
169 const char *version, 169 const char *version,
170 const char *upload_data, size_t *upload_data_size, 170 const char *upload_data, size_t *upload_data_size,
171 void **unused) 171 void **req_cls)
172{ 172{
173 static int ptr; 173 static int ptr;
174 const char *me = cls; 174 const char *me = cls;
@@ -178,12 +178,12 @@ ahc_echo (void *cls,
178 178
179 if (0 != strcmp (me, method)) 179 if (0 != strcmp (me, method))
180 return MHD_NO; /* unexpected method */ 180 return MHD_NO; /* unexpected method */
181 if (&ptr != *unused) 181 if (&ptr != *req_cls)
182 { 182 {
183 *unused = &ptr; 183 *req_cls = &ptr;
184 return MHD_YES; 184 return MHD_YES;
185 } 185 }
186 *unused = NULL; 186 *req_cls = NULL;
187 ret = MHD_queue_response (connection, MHD_HTTP_OK, response); 187 ret = MHD_queue_response (connection, MHD_HTTP_OK, response);
188 if (ret == MHD_NO) 188 if (ret == MHD_NO)
189 abort (); 189 abort ();