aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-06-13 21:27:10 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-06-13 21:27:10 +0300
commitfa5b49e030b86e2b26f68da3fdeea09e63000a10 (patch)
treea90e56bab79f0fa1031d4ca3992deb8990dcfe43
parent70f6be39a13d6fc38ec7375d81fd20cccb70af58 (diff)
downloadlibmicrohttpd-fa5b49e030b86e2b26f68da3fdeea09e63000a10.tar.gz
libmicrohttpd-fa5b49e030b86e2b26f68da3fdeea09e63000a10.zip
test_daemon: fixed compiler warnings
-rw-r--r--src/microhttpd/test_daemon.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/microhttpd/test_daemon.c b/src/microhttpd/test_daemon.c
index 7a55ff65..6990ea3a 100644
--- a/src/microhttpd/test_daemon.c
+++ b/src/microhttpd/test_daemon.c
@@ -35,8 +35,8 @@
35#endif 35#endif
36 36
37 37
38static int 38static unsigned int
39testStartError () 39testStartError (void)
40{ 40{
41 struct MHD_Daemon *d; 41 struct MHD_Daemon *d;
42 42
@@ -91,8 +91,8 @@ ahc_nothing (void *cls,
91} 91}
92 92
93 93
94static int 94static unsigned int
95testStartStop () 95testStartStop (void)
96{ 96{
97 struct MHD_Daemon *d; 97 struct MHD_Daemon *d;
98 98
@@ -105,7 +105,7 @@ testStartStop ()
105 { 105 {
106 fprintf (stderr, 106 fprintf (stderr,
107 "Failed to start daemon on port %u\n", 107 "Failed to start daemon on port %u\n",
108 0); 108 (unsigned int) 0);
109 exit (77); 109 exit (77);
110 } 110 }
111 MHD_stop_daemon (d); 111 MHD_stop_daemon (d);
@@ -113,8 +113,8 @@ testStartStop ()
113} 113}
114 114
115 115
116static int 116static unsigned int
117testExternalRun () 117testExternalRun (void)
118{ 118{
119 struct MHD_Daemon *d; 119 struct MHD_Daemon *d;
120 fd_set rs; 120 fd_set rs;
@@ -131,7 +131,7 @@ testExternalRun ()
131 { 131 {
132 fprintf (stderr, 132 fprintf (stderr,
133 "Failed to start daemon on port %u\n", 133 "Failed to start daemon on port %u\n",
134 0); 134 (unsigned int) 0);
135 exit (77); 135 exit (77);
136 } 136 }
137 i = 0; 137 i = 0;
@@ -160,8 +160,8 @@ testExternalRun ()
160} 160}
161 161
162 162
163static int 163static unsigned int
164testThread () 164testThread (void)
165{ 165{
166 struct MHD_Daemon *d; 166 struct MHD_Daemon *d;
167 167
@@ -175,7 +175,7 @@ testThread ()
175 { 175 {
176 fprintf (stderr, 176 fprintf (stderr,
177 "Failed to start daemon on port %u.\n", 177 "Failed to start daemon on port %u.\n",
178 1082); 178 (unsigned int) 1082);
179 exit (77); 179 exit (77);
180 } 180 }
181 if (MHD_run (d) != MHD_NO) 181 if (MHD_run (d) != MHD_NO)
@@ -189,8 +189,8 @@ testThread ()
189} 189}
190 190
191 191
192static int 192static unsigned int
193testMultithread () 193testMultithread (void)
194{ 194{
195 struct MHD_Daemon *d; 195 struct MHD_Daemon *d;
196 196
@@ -205,7 +205,7 @@ testMultithread ()
205 { 205 {
206 fprintf (stderr, 206 fprintf (stderr,
207 "Failed to start daemon on port %u\n", 207 "Failed to start daemon on port %u\n",
208 0); 208 (unsigned int) 0);
209 exit (77); 209 exit (77);
210 } 210 }
211 if (MHD_run (d) != MHD_NO) 211 if (MHD_run (d) != MHD_NO)
@@ -223,7 +223,7 @@ int
223main (int argc, 223main (int argc,
224 char *const *argv) 224 char *const *argv)
225{ 225{
226 int errorCount = 0; 226 unsigned int errorCount = 0;
227 (void) argc; (void) argv; /* Unused. Silent compiler warning. */ 227 (void) argc; (void) argv; /* Unused. Silent compiler warning. */
228 228
229 errorCount += testStartError (); 229 errorCount += testStartError ();