aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_quiesce.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/test_quiesce.c')
-rw-r--r--src/testcurl/test_quiesce.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/testcurl/test_quiesce.c b/src/testcurl/test_quiesce.c
index 8b350237..1e0eb0c4 100644
--- a/src/testcurl/test_quiesce.c
+++ b/src/testcurl/test_quiesce.c
@@ -193,7 +193,7 @@ ahc_echo (void *cls,
193 const char *method, 193 const char *method,
194 const char *version, 194 const char *version,
195 const char *upload_data, size_t *upload_data_size, 195 const char *upload_data, size_t *upload_data_size,
196 void **unused) 196 void **req_cls)
197{ 197{
198 static int ptr; 198 static int ptr;
199 const char *me = cls; 199 const char *me = cls;
@@ -205,12 +205,12 @@ ahc_echo (void *cls,
205 fprintf (stderr, "Unexpected HTTP method '%s'. ", method); 205 fprintf (stderr, "Unexpected HTTP method '%s'. ", method);
206 externalErrorExit (); 206 externalErrorExit ();
207 } 207 }
208 if (&ptr != *unused) 208 if (&ptr != *req_cls)
209 { 209 {
210 *unused = &ptr; 210 *req_cls = &ptr;
211 return MHD_YES; 211 return MHD_YES;
212 } 212 }
213 *unused = NULL; 213 *req_cls = NULL;
214 response = MHD_create_response_from_buffer (strlen (url), 214 response = MHD_create_response_from_buffer (strlen (url),
215 (void *) url, 215 (void *) url,
216 MHD_RESPMEM_MUST_COPY); 216 MHD_RESPMEM_MUST_COPY);
@@ -229,10 +229,10 @@ ahc_echo (void *cls,
229 229
230static void 230static void
231request_completed (void *cls, struct MHD_Connection *connection, 231request_completed (void *cls, struct MHD_Connection *connection,
232 void **con_cls, enum MHD_RequestTerminationCode code) 232 void **req_cls, enum MHD_RequestTerminationCode code)
233{ 233{
234 int *done = (int *) cls; 234 int *done = (int *) cls;
235 (void) connection; (void) con_cls; (void) code; /* Unused. Silent compiler warning. */ 235 (void) connection; (void) req_cls; (void) code; /* Unused. Silent compiler warning. */
236 if (MHD_REQUEST_TERMINATED_COMPLETED_OK != code) 236 if (MHD_REQUEST_TERMINATED_COMPLETED_OK != code)
237 { 237 {
238 fprintf (stderr, "Unexpected termination code: %d. ", (int) code); 238 fprintf (stderr, "Unexpected termination code: %d. ", (int) code);