diff options
Diffstat (limited to 'src/testcurl/test_iplimit.c')
-rw-r--r-- | src/testcurl/test_iplimit.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/testcurl/test_iplimit.c b/src/testcurl/test_iplimit.c index 1e747f0c..f60876e3 100644 --- a/src/testcurl/test_iplimit.c +++ b/src/testcurl/test_iplimit.c | |||
@@ -108,7 +108,7 @@ ahc_echo (void *cls, | |||
108 | } | 108 | } |
109 | 109 | ||
110 | 110 | ||
111 | static int | 111 | static unsigned int |
112 | testMultithreadedGet (void) | 112 | testMultithreadedGet (void) |
113 | { | 113 | { |
114 | struct MHD_Daemon *d; | 114 | struct MHD_Daemon *d; |
@@ -116,7 +116,7 @@ testMultithreadedGet (void) | |||
116 | int k; | 116 | int k; |
117 | unsigned int success; | 117 | unsigned int success; |
118 | unsigned int failure; | 118 | unsigned int failure; |
119 | int port; | 119 | uint16_t port; |
120 | 120 | ||
121 | if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT)) | 121 | if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT)) |
122 | port = 0; | 122 | port = 0; |
@@ -146,7 +146,7 @@ testMultithreadedGet (void) | |||
146 | { | 146 | { |
147 | MHD_stop_daemon (d); return 32; | 147 | MHD_stop_daemon (d); return 32; |
148 | } | 148 | } |
149 | port = (int) dinfo->port; | 149 | port = dinfo->port; |
150 | } | 150 | } |
151 | 151 | ||
152 | for (k = 0; k < 3; ++k) | 152 | for (k = 0; k < 3; ++k) |
@@ -223,13 +223,13 @@ testMultithreadedGet (void) | |||
223 | } | 223 | } |
224 | 224 | ||
225 | 225 | ||
226 | static int | 226 | static unsigned int |
227 | testMultithreadedPoolGet (void) | 227 | testMultithreadedPoolGet (void) |
228 | { | 228 | { |
229 | struct MHD_Daemon *d; | 229 | struct MHD_Daemon *d; |
230 | char buf[2048]; | 230 | char buf[2048]; |
231 | int k; | 231 | int k; |
232 | int port; | 232 | uint16_t port; |
233 | if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT)) | 233 | if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT)) |
234 | port = 0; | 234 | port = 0; |
235 | else | 235 | else |
@@ -258,7 +258,7 @@ testMultithreadedPoolGet (void) | |||
258 | { | 258 | { |
259 | MHD_stop_daemon (d); return 32; | 259 | MHD_stop_daemon (d); return 32; |
260 | } | 260 | } |
261 | port = (int) dinfo->port; | 261 | port = dinfo->port; |
262 | } | 262 | } |
263 | 263 | ||
264 | for (k = 0; k < 3; ++k) | 264 | for (k = 0; k < 3; ++k) |