diff options
Diffstat (limited to 'src/testcurl/test_iplimit.c')
-rw-r--r-- | src/testcurl/test_iplimit.c | 10 |
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 | |||
76 | static int | 77 | static int |
77 | ahc_echo (void *cls, | 78 | ahc_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 | |||
109 | static int | 111 | static int |
110 | testMultithreadedGet () | 112 | testMultithreadedGet () |
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 | |||
223 | static int | 226 | static int |
224 | testMultithreadedPoolGet () | 227 | testMultithreadedPoolGet () |
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 | |||
341 | int | 345 | int |
342 | main (int argc, char *const *argv) | 346 | main (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)) |