aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/https/test_https_get_iovec.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/https/test_https_get_iovec.c')
-rw-r--r--src/testcurl/https/test_https_get_iovec.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/testcurl/https/test_https_get_iovec.c b/src/testcurl/https/test_https_get_iovec.c
index 615ef340..3bdb610f 100644
--- a/src/testcurl/https/test_https_get_iovec.c
+++ b/src/testcurl/https/test_https_get_iovec.c
@@ -91,7 +91,7 @@ iovec_ahc (void *cls,
91 const char *version, 91 const char *version,
92 const char *upload_data, 92 const char *upload_data,
93 size_t *upload_data_size, 93 size_t *upload_data_size,
94 void **ptr) 94 void **req_cls)
95{ 95{
96 static int aptr; 96 static int aptr;
97 struct MHD_Response *response; 97 struct MHD_Response *response;
@@ -105,13 +105,13 @@ iovec_ahc (void *cls,
105 105
106 if (0 != strcmp (method, MHD_HTTP_METHOD_GET)) 106 if (0 != strcmp (method, MHD_HTTP_METHOD_GET))
107 return MHD_NO; /* unexpected method */ 107 return MHD_NO; /* unexpected method */
108 if (&aptr != *ptr) 108 if (&aptr != *req_cls)
109 { 109 {
110 /* do never respond on first call */ 110 /* do never respond on first call */
111 *ptr = &aptr; 111 *req_cls = &aptr;
112 return MHD_YES; 112 return MHD_YES;
113 } 113 }
114 *ptr = NULL; /* reset when done */ 114 *req_cls = NULL; /* reset when done */
115 115
116 /* Create some test data. */ 116 /* Create some test data. */
117 if (NULL == (data = malloc (TESTSTR_SIZE))) 117 if (NULL == (data = malloc (TESTSTR_SIZE)))
@@ -248,7 +248,7 @@ ahc_empty (void *cls,
248 const char *version, 248 const char *version,
249 const char *upload_data, 249 const char *upload_data,
250 size_t *upload_data_size, 250 size_t *upload_data_size,
251 void **unused) 251 void **req_cls)
252{ 252{
253 static int ptr; 253 static int ptr;
254 struct MHD_Response *response; 254 struct MHD_Response *response;
@@ -264,12 +264,12 @@ ahc_empty (void *cls,
264 if (0 != strcmp ("GET", 264 if (0 != strcmp ("GET",
265 method)) 265 method))
266 return MHD_NO; /* unexpected method */ 266 return MHD_NO; /* unexpected method */
267 if (&ptr != *unused) 267 if (&ptr != *req_cls)
268 { 268 {
269 *unused = &ptr; 269 *req_cls = &ptr;
270 return MHD_YES; 270 return MHD_YES;
271 } 271 }
272 *unused = NULL; 272 *req_cls = NULL;
273 273
274 iov.iov_base = NULL; 274 iov.iov_base = NULL;
275 iov.iov_len = 0; 275 iov.iov_len = 0;