diff options
Diffstat (limited to 'src/testcurl/test_postform.c')
-rw-r--r-- | src/testcurl/test_postform.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/testcurl/test_postform.c b/src/testcurl/test_postform.c index 4fb4fe4f..e46250af 100644 --- a/src/testcurl/test_postform.c +++ b/src/testcurl/test_postform.c | |||
@@ -187,7 +187,7 @@ make_form (void) | |||
187 | } | 187 | } |
188 | 188 | ||
189 | 189 | ||
190 | static int | 190 | static unsigned int |
191 | testInternalPost (void) | 191 | testInternalPost (void) |
192 | { | 192 | { |
193 | struct MHD_Daemon *d; | 193 | struct MHD_Daemon *d; |
@@ -196,7 +196,7 @@ testInternalPost (void) | |||
196 | struct CBC cbc; | 196 | struct CBC cbc; |
197 | CURLcode errornum; | 197 | CURLcode errornum; |
198 | struct curl_httppost *pd; | 198 | struct curl_httppost *pd; |
199 | int port; | 199 | uint16_t port; |
200 | 200 | ||
201 | if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT)) | 201 | if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT)) |
202 | port = 0; | 202 | port = 0; |
@@ -224,7 +224,7 @@ testInternalPost (void) | |||
224 | { | 224 | { |
225 | MHD_stop_daemon (d); return 32; | 225 | MHD_stop_daemon (d); return 32; |
226 | } | 226 | } |
227 | port = (int) dinfo->port; | 227 | port = dinfo->port; |
228 | } | 228 | } |
229 | c = curl_easy_init (); | 229 | c = curl_easy_init (); |
230 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1/hello_world"); | 230 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1/hello_world"); |
@@ -265,7 +265,7 @@ testInternalPost (void) | |||
265 | } | 265 | } |
266 | 266 | ||
267 | 267 | ||
268 | static int | 268 | static unsigned int |
269 | testMultithreadedPost (void) | 269 | testMultithreadedPost (void) |
270 | { | 270 | { |
271 | struct MHD_Daemon *d; | 271 | struct MHD_Daemon *d; |
@@ -274,7 +274,7 @@ testMultithreadedPost (void) | |||
274 | struct CBC cbc; | 274 | struct CBC cbc; |
275 | CURLcode errornum; | 275 | CURLcode errornum; |
276 | struct curl_httppost *pd; | 276 | struct curl_httppost *pd; |
277 | int port; | 277 | uint16_t port; |
278 | 278 | ||
279 | if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT)) | 279 | if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT)) |
280 | port = 0; | 280 | port = 0; |
@@ -303,7 +303,7 @@ testMultithreadedPost (void) | |||
303 | { | 303 | { |
304 | MHD_stop_daemon (d); return 32; | 304 | MHD_stop_daemon (d); return 32; |
305 | } | 305 | } |
306 | port = (int) dinfo->port; | 306 | port = dinfo->port; |
307 | } | 307 | } |
308 | c = curl_easy_init (); | 308 | c = curl_easy_init (); |
309 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1/hello_world"); | 309 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1/hello_world"); |
@@ -344,7 +344,7 @@ testMultithreadedPost (void) | |||
344 | } | 344 | } |
345 | 345 | ||
346 | 346 | ||
347 | static int | 347 | static unsigned int |
348 | testMultithreadedPoolPost (void) | 348 | testMultithreadedPoolPost (void) |
349 | { | 349 | { |
350 | struct MHD_Daemon *d; | 350 | struct MHD_Daemon *d; |
@@ -353,7 +353,7 @@ testMultithreadedPoolPost (void) | |||
353 | struct CBC cbc; | 353 | struct CBC cbc; |
354 | CURLcode errornum; | 354 | CURLcode errornum; |
355 | struct curl_httppost *pd; | 355 | struct curl_httppost *pd; |
356 | int port; | 356 | uint16_t port; |
357 | 357 | ||
358 | if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT)) | 358 | if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT)) |
359 | port = 0; | 359 | port = 0; |
@@ -382,7 +382,7 @@ testMultithreadedPoolPost (void) | |||
382 | { | 382 | { |
383 | MHD_stop_daemon (d); return 32; | 383 | MHD_stop_daemon (d); return 32; |
384 | } | 384 | } |
385 | port = (int) dinfo->port; | 385 | port = dinfo->port; |
386 | } | 386 | } |
387 | c = curl_easy_init (); | 387 | c = curl_easy_init (); |
388 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1/hello_world"); | 388 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1/hello_world"); |
@@ -423,7 +423,7 @@ testMultithreadedPoolPost (void) | |||
423 | } | 423 | } |
424 | 424 | ||
425 | 425 | ||
426 | static int | 426 | static unsigned int |
427 | testExternalPost (void) | 427 | testExternalPost (void) |
428 | { | 428 | { |
429 | struct MHD_Daemon *d; | 429 | struct MHD_Daemon *d; |
@@ -446,7 +446,7 @@ testExternalPost (void) | |||
446 | time_t start; | 446 | time_t start; |
447 | struct timeval tv; | 447 | struct timeval tv; |
448 | struct curl_httppost *pd; | 448 | struct curl_httppost *pd; |
449 | int port; | 449 | uint16_t port; |
450 | 450 | ||
451 | if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT)) | 451 | if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT)) |
452 | port = 0; | 452 | port = 0; |
@@ -475,7 +475,7 @@ testExternalPost (void) | |||
475 | { | 475 | { |
476 | MHD_stop_daemon (d); return 32; | 476 | MHD_stop_daemon (d); return 32; |
477 | } | 477 | } |
478 | port = (int) dinfo->port; | 478 | port = dinfo->port; |
479 | } | 479 | } |
480 | c = curl_easy_init (); | 480 | c = curl_easy_init (); |
481 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1/hello_world"); | 481 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1/hello_world"); |