aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_iplimit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/test_iplimit.c')
-rw-r--r--src/testcurl/test_iplimit.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/testcurl/test_iplimit.c b/src/testcurl/test_iplimit.c
index 82d2923f..60570886 100644
--- a/src/testcurl/test_iplimit.c
+++ b/src/testcurl/test_iplimit.c
@@ -73,6 +73,7 @@ copyBuffer (void *ptr, size_t size, size_t nmemb, void *ctx)
73 return size * nmemb; 73 return size * nmemb;
74} 74}
75 75
76
76static int 77static int
77ahc_echo (void *cls, 78ahc_echo (void *cls,
78 struct MHD_Connection *connection, 79 struct MHD_Connection *connection,
@@ -106,6 +107,7 @@ ahc_echo (void *cls,
106 return ret; 107 return ret;
107} 108}
108 109
110
109static int 111static int
110testMultithreadedGet () 112testMultithreadedGet ()
111{ 113{
@@ -140,7 +142,7 @@ testMultithreadedGet ()
140 { 142 {
141 const union MHD_DaemonInfo *dinfo; 143 const union MHD_DaemonInfo *dinfo;
142 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); 144 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT);
143 if ((NULL == dinfo) ||(0 == dinfo->port) ) 145 if ((NULL == dinfo) || (0 == dinfo->port) )
144 { 146 {
145 MHD_stop_daemon (d); return 32; 147 MHD_stop_daemon (d); return 32;
146 } 148 }
@@ -220,6 +222,7 @@ testMultithreadedGet ()
220 return 0; 222 return 0;
221} 223}
222 224
225
223static int 226static int
224testMultithreadedPoolGet () 227testMultithreadedPoolGet ()
225{ 228{
@@ -251,7 +254,7 @@ testMultithreadedPoolGet ()
251 { 254 {
252 const union MHD_DaemonInfo *dinfo; 255 const union MHD_DaemonInfo *dinfo;
253 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); 256 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT);
254 if ((NULL == dinfo) ||(0 == dinfo->port) ) 257 if ((NULL == dinfo) || (0 == dinfo->port) )
255 { 258 {
256 MHD_stop_daemon (d); return 32; 259 MHD_stop_daemon (d); return 32;
257 } 260 }
@@ -338,13 +341,14 @@ testMultithreadedPoolGet ()
338 return 0; 341 return 0;
339} 342}
340 343
344
341int 345int
342main (int argc, char *const *argv) 346main (int argc, char *const *argv)
343{ 347{
344 unsigned int errorCount = 0; 348 unsigned int errorCount = 0;
345 (void) argc; /* Unused. Silent compiler warning. */ 349 (void) argc; /* Unused. Silent compiler warning. */
346 350
347 if ((NULL == argv)||(0 == argv[0])) 351 if ((NULL == argv) || (0 == argv[0]))
348 return 99; 352 return 99;
349 oneone = has_in_name (argv[0], "11"); 353 oneone = has_in_name (argv[0], "11");
350 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 354 if (0 != curl_global_init (CURL_GLOBAL_WIN32))