diff options
Diffstat (limited to 'src/testcurl/test_delete.c')
-rw-r--r-- | src/testcurl/test_delete.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/testcurl/test_delete.c b/src/testcurl/test_delete.c index 07af82e5..442d4397 100644 --- a/src/testcurl/test_delete.c +++ b/src/testcurl/test_delete.c | |||
@@ -58,8 +58,8 @@ struct CBC | |||
58 | static size_t | 58 | static size_t |
59 | putBuffer (void *stream, size_t size, size_t nmemb, void *ptr) | 59 | putBuffer (void *stream, size_t size, size_t nmemb, void *ptr) |
60 | { | 60 | { |
61 | unsigned int *pos = ptr; | 61 | size_t *pos = ptr; |
62 | unsigned int wrt; | 62 | size_t wrt; |
63 | 63 | ||
64 | wrt = size * nmemb; | 64 | wrt = size * nmemb; |
65 | if (wrt > 8 - (*pos)) | 65 | if (wrt > 8 - (*pos)) |
@@ -123,17 +123,17 @@ ahc_echo (void *cls, | |||
123 | } | 123 | } |
124 | 124 | ||
125 | 125 | ||
126 | static int | 126 | static unsigned int |
127 | testInternalDelete (void) | 127 | testInternalDelete (void) |
128 | { | 128 | { |
129 | struct MHD_Daemon *d; | 129 | struct MHD_Daemon *d; |
130 | CURL *c; | 130 | CURL *c; |
131 | char buf[2048]; | 131 | char buf[2048]; |
132 | struct CBC cbc; | 132 | struct CBC cbc; |
133 | unsigned int pos = 0; | 133 | size_t pos = 0; |
134 | int done_flag = 0; | 134 | int done_flag = 0; |
135 | CURLcode errornum; | 135 | CURLcode errornum; |
136 | int port; | 136 | uint16_t port; |
137 | 137 | ||
138 | if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT)) | 138 | if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT)) |
139 | port = 0; | 139 | port = 0; |
@@ -156,7 +156,7 @@ testInternalDelete (void) | |||
156 | { | 156 | { |
157 | MHD_stop_daemon (d); return 32; | 157 | MHD_stop_daemon (d); return 32; |
158 | } | 158 | } |
159 | port = (int) dinfo->port; | 159 | port = dinfo->port; |
160 | } | 160 | } |
161 | c = curl_easy_init (); | 161 | c = curl_easy_init (); |
162 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1/hello_world"); | 162 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1/hello_world"); |
@@ -198,17 +198,17 @@ testInternalDelete (void) | |||
198 | } | 198 | } |
199 | 199 | ||
200 | 200 | ||
201 | static int | 201 | static unsigned int |
202 | testMultithreadedDelete (void) | 202 | testMultithreadedDelete (void) |
203 | { | 203 | { |
204 | struct MHD_Daemon *d; | 204 | struct MHD_Daemon *d; |
205 | CURL *c; | 205 | CURL *c; |
206 | char buf[2048]; | 206 | char buf[2048]; |
207 | struct CBC cbc; | 207 | struct CBC cbc; |
208 | unsigned int pos = 0; | 208 | size_t pos = 0; |
209 | int done_flag = 0; | 209 | int done_flag = 0; |
210 | CURLcode errornum; | 210 | CURLcode errornum; |
211 | int port; | 211 | uint16_t port; |
212 | 212 | ||
213 | if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT)) | 213 | if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT)) |
214 | port = 0; | 214 | port = 0; |
@@ -232,7 +232,7 @@ testMultithreadedDelete (void) | |||
232 | { | 232 | { |
233 | MHD_stop_daemon (d); return 32; | 233 | MHD_stop_daemon (d); return 32; |
234 | } | 234 | } |
235 | port = (int) dinfo->port; | 235 | port = dinfo->port; |
236 | } | 236 | } |
237 | c = curl_easy_init (); | 237 | c = curl_easy_init (); |
238 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1/hello_world"); | 238 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1/hello_world"); |
@@ -275,17 +275,17 @@ testMultithreadedDelete (void) | |||
275 | } | 275 | } |
276 | 276 | ||
277 | 277 | ||
278 | static int | 278 | static unsigned int |
279 | testMultithreadedPoolDelete (void) | 279 | testMultithreadedPoolDelete (void) |
280 | { | 280 | { |
281 | struct MHD_Daemon *d; | 281 | struct MHD_Daemon *d; |
282 | CURL *c; | 282 | CURL *c; |
283 | char buf[2048]; | 283 | char buf[2048]; |
284 | struct CBC cbc; | 284 | struct CBC cbc; |
285 | unsigned int pos = 0; | 285 | size_t pos = 0; |
286 | int done_flag = 0; | 286 | int done_flag = 0; |
287 | CURLcode errornum; | 287 | CURLcode errornum; |
288 | int port; | 288 | uint16_t port; |
289 | 289 | ||
290 | if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT)) | 290 | if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT)) |
291 | port = 0; | 291 | port = 0; |
@@ -310,7 +310,7 @@ testMultithreadedPoolDelete (void) | |||
310 | { | 310 | { |
311 | MHD_stop_daemon (d); return 32; | 311 | MHD_stop_daemon (d); return 32; |
312 | } | 312 | } |
313 | port = (int) dinfo->port; | 313 | port = dinfo->port; |
314 | } | 314 | } |
315 | c = curl_easy_init (); | 315 | c = curl_easy_init (); |
316 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1/hello_world"); | 316 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1/hello_world"); |
@@ -353,7 +353,7 @@ testMultithreadedPoolDelete (void) | |||
353 | } | 353 | } |
354 | 354 | ||
355 | 355 | ||
356 | static int | 356 | static unsigned int |
357 | testExternalDelete (void) | 357 | testExternalDelete (void) |
358 | { | 358 | { |
359 | struct MHD_Daemon *d; | 359 | struct MHD_Daemon *d; |
@@ -375,9 +375,9 @@ testExternalDelete (void) | |||
375 | struct CURLMsg *msg; | 375 | struct CURLMsg *msg; |
376 | time_t start; | 376 | time_t start; |
377 | struct timeval tv; | 377 | struct timeval tv; |
378 | unsigned int pos = 0; | 378 | size_t pos = 0; |
379 | int done_flag = 0; | 379 | int done_flag = 0; |
380 | int port; | 380 | uint16_t port; |
381 | 381 | ||
382 | if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT)) | 382 | if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT)) |
383 | port = 0; | 383 | port = 0; |
@@ -401,7 +401,7 @@ testExternalDelete (void) | |||
401 | { | 401 | { |
402 | MHD_stop_daemon (d); return 32; | 402 | MHD_stop_daemon (d); return 32; |
403 | } | 403 | } |
404 | port = (int) dinfo->port; | 404 | port = dinfo->port; |
405 | } | 405 | } |
406 | c = curl_easy_init (); | 406 | c = curl_easy_init (); |
407 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1/hello_world"); | 407 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1/hello_world"); |