aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_get_iovec.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/test_get_iovec.c')
-rw-r--r--src/testcurl/test_get_iovec.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/testcurl/test_get_iovec.c b/src/testcurl/test_get_iovec.c
index ae30f6d6..bcb610dc 100644
--- a/src/testcurl/test_get_iovec.c
+++ b/src/testcurl/test_get_iovec.c
@@ -132,7 +132,7 @@ ahc_echo (void *cls,
132 const char *method, 132 const char *method,
133 const char *version, 133 const char *version,
134 const char *upload_data, size_t *upload_data_size, 134 const char *upload_data, size_t *upload_data_size,
135 void **unused) 135 void **req_cls)
136{ 136{
137 static int ptr; 137 static int ptr;
138 const char *me = cls; 138 const char *me = cls;
@@ -146,12 +146,12 @@ ahc_echo (void *cls,
146 146
147 if (0 != strcmp (me, method)) 147 if (0 != strcmp (me, method))
148 return MHD_NO; /* unexpected method */ 148 return MHD_NO; /* unexpected method */
149 if (&ptr != *unused) 149 if (&ptr != *req_cls)
150 { 150 {
151 *unused = &ptr; 151 *req_cls = &ptr;
152 return MHD_YES; 152 return MHD_YES;
153 } 153 }
154 *unused = NULL; 154 *req_cls = NULL;
155 155
156 /* Create some test data. */ 156 /* Create some test data. */
157 if (NULL == (data = malloc (TESTSTR_SIZE))) 157 if (NULL == (data = malloc (TESTSTR_SIZE)))
@@ -188,7 +188,7 @@ ncont_echo (void *cls,
188 const char *method, 188 const char *method,
189 const char *version, 189 const char *version,
190 const char *upload_data, size_t *upload_data_size, 190 const char *upload_data, size_t *upload_data_size,
191 void **unused) 191 void **req_cls)
192{ 192{
193 static int ptr; 193 static int ptr;
194 const char *me = cls; 194 const char *me = cls;
@@ -202,12 +202,12 @@ ncont_echo (void *cls,
202 202
203 if (0 != strcmp (me, method)) 203 if (0 != strcmp (me, method))
204 return MHD_NO; /* unexpected method */ 204 return MHD_NO; /* unexpected method */
205 if (&ptr != *unused) 205 if (&ptr != *req_cls)
206 { 206 {
207 *unused = &ptr; 207 *req_cls = &ptr;
208 return MHD_YES; 208 return MHD_YES;
209 } 209 }
210 *unused = NULL; 210 *req_cls = NULL;
211 211
212 if (NULL == (iov = malloc (sizeof(struct MHD_IoVec) * TESTSTR_IOVCNT))) 212 if (NULL == (iov = malloc (sizeof(struct MHD_IoVec) * TESTSTR_IOVCNT)))
213 return MHD_NO; 213 return MHD_NO;