gnunet-svn
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]