[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 07/09: test_daemon: fixed compiler warnings
From: |
gnunet |
Subject: |
[libmicrohttpd] 07/09: test_daemon: fixed compiler warnings |
Date: |
Mon, 13 Jun 2022 20:28:38 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit fa5b49e030b86e2b26f68da3fdeea09e63000a10
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Jun 13 21:27:10 2022 +0300
test_daemon: fixed compiler warnings
---
src/microhttpd/test_daemon.c | 30 +++++++++++++++---------------
1 file 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 @@
#endif
-static int
-testStartError ()
+static unsigned int
+testStartError (void)
{
struct MHD_Daemon *d;
@@ -91,8 +91,8 @@ ahc_nothing (void *cls,
}
-static int
-testStartStop ()
+static unsigned int
+testStartStop (void)
{
struct MHD_Daemon *d;
@@ -105,7 +105,7 @@ testStartStop ()
{
fprintf (stderr,
"Failed to start daemon on port %u\n",
- 0);
+ (unsigned int) 0);
exit (77);
}
MHD_stop_daemon (d);
@@ -113,8 +113,8 @@ testStartStop ()
}
-static int
-testExternalRun ()
+static unsigned int
+testExternalRun (void)
{
struct MHD_Daemon *d;
fd_set rs;
@@ -131,7 +131,7 @@ testExternalRun ()
{
fprintf (stderr,
"Failed to start daemon on port %u\n",
- 0);
+ (unsigned int) 0);
exit (77);
}
i = 0;
@@ -160,8 +160,8 @@ testExternalRun ()
}
-static int
-testThread ()
+static unsigned int
+testThread (void)
{
struct MHD_Daemon *d;
@@ -175,7 +175,7 @@ testThread ()
{
fprintf (stderr,
"Failed to start daemon on port %u.\n",
- 1082);
+ (unsigned int) 1082);
exit (77);
}
if (MHD_run (d) != MHD_NO)
@@ -189,8 +189,8 @@ testThread ()
}
-static int
-testMultithread ()
+static unsigned int
+testMultithread (void)
{
struct MHD_Daemon *d;
@@ -205,7 +205,7 @@ testMultithread ()
{
fprintf (stderr,
"Failed to start daemon on port %u\n",
- 0);
+ (unsigned int) 0);
exit (77);
}
if (MHD_run (d) != MHD_NO)
@@ -223,7 +223,7 @@ int
main (int argc,
char *const *argv)
{
- int errorCount = 0;
+ unsigned int errorCount = 0;
(void) argc; (void) argv; /* Unused. Silent compiler warning. */
errorCount += testStartError ();
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (6884fa83 -> 9668d71f), gnunet, 2022/06/13
- [libmicrohttpd] 04/09: test_postprocessor{,_amp,_large}: fixed compiler warnings, fixed extra-long strings, gnunet, 2022/06/13
- [libmicrohttpd] 02/09: postprocessor.c: added assert, gnunet, 2022/06/13
- [libmicrohttpd] 03/09: test_postprocessor_md: removed include of .c file, fixed extra long lines, gnunet, 2022/06/13
- [libmicrohttpd] 08/09: test_http_reasons: fixed compiler warnings, gnunet, 2022/06/13
- [libmicrohttpd] 09/09: test_start_stop: fixed compiler warnings, gnunet, 2022/06/13
- [libmicrohttpd] 05/09: test_str: minor refactoring, fixed compiler warnings, gnunet, 2022/06/13
- [libmicrohttpd] 01/09: postprocessor.h: added new internal header, gnunet, 2022/06/13
- [libmicrohttpd] 07/09: test_daemon: fixed compiler warnings,
gnunet <=
- [libmicrohttpd] 06/09: test_str_token{,s,s_remove}: fixed compiler warnings, gnunet, 2022/06/13