aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_iplimit.c
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-09-30 15:46:23 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-10-01 15:07:36 +0300
commit023e1dba2a6a8b3710613aa84d6253a62038cdad (patch)
tree0a3c2c1e23a97edb6fd585b45f188db10b2deb99 /src/testcurl/test_iplimit.c
parent81733d43e89dde0e69f6657d85aca9500563d44b (diff)
downloadlibmicrohttpd-023e1dba2a6a8b3710613aa84d6253a62038cdad.tar.gz
libmicrohttpd-023e1dba2a6a8b3710613aa84d6253a62038cdad.zip
testcurl: fixed used types and related warnings
Diffstat (limited to 'src/testcurl/test_iplimit.c')
-rw-r--r--src/testcurl/test_iplimit.c12
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
111static int 111static unsigned int
112testMultithreadedGet (void) 112testMultithreadedGet (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
226static int 226static unsigned int
227testMultithreadedPoolGet (void) 227testMultithreadedPoolGet (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)