aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_large_put.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/test_large_put.c')
-rw-r--r--src/testcurl/test_large_put.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/testcurl/test_large_put.c b/src/testcurl/test_large_put.c
index 8a597c28..c46e120a 100644
--- a/src/testcurl/test_large_put.c
+++ b/src/testcurl/test_large_put.c
@@ -297,7 +297,7 @@ ahc_echo (void *cls,
297} 297}
298 298
299 299
300static int 300static unsigned int
301testPutInternalThread (unsigned int add_flag) 301testPutInternalThread (unsigned int add_flag)
302{ 302{
303 struct MHD_Daemon *d; 303 struct MHD_Daemon *d;
@@ -307,7 +307,7 @@ testPutInternalThread (unsigned int add_flag)
307 int done_flag = 0; 307 int done_flag = 0;
308 CURLcode errornum; 308 CURLcode errornum;
309 char buf[2048]; 309 char buf[2048];
310 int port; 310 uint16_t port;
311 311
312 if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT)) 312 if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT))
313 port = 0; 313 port = 0;
@@ -338,7 +338,7 @@ testPutInternalThread (unsigned int add_flag)
338 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); 338 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT);
339 if ((NULL == dinfo) || (0 == dinfo->port) ) 339 if ((NULL == dinfo) || (0 == dinfo->port) )
340 mhdErrorExit (); 340 mhdErrorExit ();
341 port = (int) dinfo->port; 341 port = dinfo->port;
342 } 342 }
343 343
344 c = curl_easy_init (); 344 c = curl_easy_init ();
@@ -402,7 +402,7 @@ testPutInternalThread (unsigned int add_flag)
402} 402}
403 403
404 404
405static int 405static unsigned int
406testPutThreadPerConn (unsigned int add_flag) 406testPutThreadPerConn (unsigned int add_flag)
407{ 407{
408 struct MHD_Daemon *d; 408 struct MHD_Daemon *d;
@@ -412,7 +412,7 @@ testPutThreadPerConn (unsigned int add_flag)
412 int done_flag = 0; 412 int done_flag = 0;
413 CURLcode errornum; 413 CURLcode errornum;
414 char buf[2048]; 414 char buf[2048];
415 int port; 415 uint16_t port;
416 416
417 if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT)) 417 if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT))
418 port = 0; 418 port = 0;
@@ -444,7 +444,7 @@ testPutThreadPerConn (unsigned int add_flag)
444 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); 444 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT);
445 if ((NULL == dinfo) || (0 == dinfo->port) ) 445 if ((NULL == dinfo) || (0 == dinfo->port) )
446 mhdErrorExit (); 446 mhdErrorExit ();
447 port = (int) dinfo->port; 447 port = dinfo->port;
448 } 448 }
449 449
450 c = curl_easy_init (); 450 c = curl_easy_init ();
@@ -507,7 +507,7 @@ testPutThreadPerConn (unsigned int add_flag)
507} 507}
508 508
509 509
510static int 510static unsigned int
511testPutThreadPool (unsigned int add_flag) 511testPutThreadPool (unsigned int add_flag)
512{ 512{
513 struct MHD_Daemon *d; 513 struct MHD_Daemon *d;
@@ -517,7 +517,7 @@ testPutThreadPool (unsigned int add_flag)
517 int done_flag = 0; 517 int done_flag = 0;
518 CURLcode errornum; 518 CURLcode errornum;
519 char buf[2048]; 519 char buf[2048];
520 int port; 520 uint16_t port;
521 521
522 if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT)) 522 if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT))
523 port = 0; 523 port = 0;
@@ -549,7 +549,7 @@ testPutThreadPool (unsigned int add_flag)
549 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); 549 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT);
550 if ((NULL == dinfo) || (0 == dinfo->port) ) 550 if ((NULL == dinfo) || (0 == dinfo->port) )
551 mhdErrorExit (); 551 mhdErrorExit ();
552 port = (int) dinfo->port; 552 port = dinfo->port;
553 } 553 }
554 554
555 c = curl_easy_init (); 555 c = curl_easy_init ();
@@ -611,7 +611,7 @@ testPutThreadPool (unsigned int add_flag)
611} 611}
612 612
613 613
614static int 614static unsigned int
615testPutExternal (void) 615testPutExternal (void)
616{ 616{
617 struct MHD_Daemon *d; 617 struct MHD_Daemon *d;
@@ -629,7 +629,7 @@ testPutExternal (void)
629 size_t pos = 0; 629 size_t pos = 0;
630 int done_flag = 0; 630 int done_flag = 0;
631 char buf[2048]; 631 char buf[2048];
632 int port; 632 uint16_t port;
633 633
634 if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT)) 634 if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT))
635 port = 0; 635 port = 0;
@@ -660,7 +660,7 @@ testPutExternal (void)
660 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); 660 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT);
661 if ((NULL == dinfo) || (0 == dinfo->port) ) 661 if ((NULL == dinfo) || (0 == dinfo->port) )
662 mhdErrorExit (); 662 mhdErrorExit ();
663 port = (int) dinfo->port; 663 port = dinfo->port;
664 } 664 }
665 665
666 c = curl_easy_init (); 666 c = curl_easy_init ();