gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] branch master updated (9f2a4206 -> 846ecb5d)


From: gnunet
Subject: [libmicrohttpd] branch master updated (9f2a4206 -> 846ecb5d)
Date: Tue, 14 Jun 2022 13:30:38 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a change to branch master
in repository libmicrohttpd.

    from 9f2a4206 test_str: fixed more compiler warnings
     new e4011fe5 test_options: fixed compiler warnings, removed dead code
     new d66afa2c test_set_panic: fixed compiler warnings
     new 7c06bcae test_postprocessor{,_large}: additional fixes for compiler 
warnings
     new 846ecb5d test_upgrade{,_large}: fixed compiler warnings

The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 src/microhttpd/test_options.c             | 21 ++++-------
 src/microhttpd/test_postprocessor.c       | 26 ++++++-------
 src/microhttpd/test_postprocessor_large.c |  4 +-
 src/microhttpd/test_set_panic.c           |  9 +++++
 src/microhttpd/test_upgrade.c             | 56 +++++++++++++++-------------
 src/microhttpd/test_upgrade_large.c       | 62 ++++++++++++++++---------------
 6 files changed, 94 insertions(+), 84 deletions(-)

diff --git a/src/microhttpd/test_options.c b/src/microhttpd/test_options.c
index 655ca828..deff9b92 100644
--- a/src/microhttpd/test_options.c
+++ b/src/microhttpd/test_options.c
@@ -28,13 +28,6 @@
 #include "microhttpd.h"
 #include "mhd_sockets.h"
 
-#define MHD_E_MEM "Error: memory error\n"
-#define MHD_E_SERVER_INIT "Error: failed to start server\n"
-
-const int DEBUG_GNUTLS_LOG_LEVEL = 0;
-const char *test_file_name = "https_test_file";
-const char test_file_data[] = "Hello World\n";
-
 static enum MHD_Result
 ahc_echo (void *cls,
           struct MHD_Connection *connection,
@@ -57,10 +50,10 @@ ahc_echo (void *cls,
 }
 
 
-static int
-test_wrap_loc (char *test_name, int (*test)(void))
+static unsigned int
+test_wrap_loc (const char *test_name, unsigned int (*test)(void))
 {
-  int ret;
+  unsigned int ret;
 
   fprintf (stdout, "running test: %s ", test_name);
   ret = test ();
@@ -79,8 +72,8 @@ test_wrap_loc (char *test_name, int (*test)(void))
 /**
  * Test daemon initialization with the MHD_OPTION_SOCK_ADDR option
  */
-static int
-test_ip_addr_option ()
+static unsigned int
+test_ip_addr_option (void)
 {
   struct MHD_Daemon *d;
   struct sockaddr_in daemon_ip_addr;
@@ -105,7 +98,7 @@ test_ip_addr_option ()
                         &daemon_ip_addr, MHD_OPTION_END);
 
   if (d == 0)
-    return -1;
+    return 1;
 
   MHD_stop_daemon (d);
 
@@ -115,7 +108,7 @@ test_ip_addr_option ()
                         &daemon_ip_addr6, MHD_OPTION_END);
 
   if (d == 0)
-    return -1;
+    return 1;
 
   MHD_stop_daemon (d);
 #endif
diff --git a/src/microhttpd/test_postprocessor.c 
b/src/microhttpd/test_postprocessor.c
index ab68541b..50dfd534 100644
--- a/src/microhttpd/test_postprocessor.c
+++ b/src/microhttpd/test_postprocessor.c
@@ -416,19 +416,19 @@ test_multipart_garbage (void)
     if (MHD_YES != MHD_post_process (pp, &xdata[splitpoint], size - 
splitpoint))
     {
       fprintf (stderr,
-               "Test failed in line %u at point %d\n",
+               "Test failed in line %u at point %u\n",
                (unsigned int) __LINE__,
-               (int) splitpoint);
+               (unsigned int) splitpoint);
       exit (49);
     }
     MHD_destroy_post_processor (pp);
     if (want_off != FORM_END)
     {
       fprintf (stderr,
-               "Test failed in line %u at point %d\n",
+               "Test failed in line %u at point %u\n",
                (unsigned int) __LINE__,
-               (int) splitpoint);
-      return (int) splitpoint;
+               (unsigned int) splitpoint);
+      return (unsigned int) splitpoint;
     }
   }
   return 0;
@@ -478,19 +478,19 @@ test_multipart_splits (void)
                                      size - splitpoint))
     {
       fprintf (stderr,
-               "Test failed in line %u at point %d\n",
+               "Test failed in line %u at point %u\n",
                (unsigned int) __LINE__,
-               (int) splitpoint);
+               (unsigned int) splitpoint);
       exit (49);
     }
     MHD_destroy_post_processor (pp);
     if (want_off != FORM_END)
     {
       fprintf (stderr,
-               "Test failed in line %u at point %d\n",
+               "Test failed in line %u at point %u\n",
                (unsigned int) __LINE__,
-               (int) splitpoint);
-      return (int) splitpoint;
+               (unsigned int) splitpoint);
+      return (unsigned int) splitpoint;
     }
   }
   return 0;
@@ -529,7 +529,7 @@ test_multipart (void)
   size = strlen (FORM_DATA);
   while (i < size)
   {
-    delta = 1 + MHD_random_ () % (size - i);
+    delta = 1 + ((size_t) MHD_random_ ()) % (size - i);
     if (MHD_YES != MHD_post_process (pp,
                                      &FORM_DATA[i],
                                      delta))
@@ -586,7 +586,7 @@ test_nested_multipart (void)
   size = strlen (FORM_NESTED_DATA);
   while (i < size)
   {
-    delta = 1 + MHD_random_ () % (size - i);
+    delta = 1 + ((size_t) MHD_random_ ()) % (size - i);
     if (MHD_YES != MHD_post_process (pp,
                                      &FORM_NESTED_DATA[i],
                                      delta))
@@ -665,7 +665,7 @@ test_overflow (void)
       return 1;
     memset (buf, 'A', i);
     buf[i / 2] = '=';
-    delta = 1 + (MHD_random_ () % (i - 1));
+    delta = 1 + (((size_t) MHD_random_ ()) % (i - 1));
     j = 0;
     while (j < i)
     {
diff --git a/src/microhttpd/test_postprocessor_large.c 
b/src/microhttpd/test_postprocessor_large.c
index 9f7096fa..5e500ed3 100644
--- a/src/microhttpd/test_postprocessor_large.c
+++ b/src/microhttpd/test_postprocessor_large.c
@@ -59,7 +59,7 @@ value_checker (void *cls,
 }
 
 
-static int
+static unsigned int
 test_simple_large (void)
 {
   struct MHD_Connection connection;
@@ -88,7 +88,7 @@ test_simple_large (void)
   size = strlen (data);
   while (i < size)
   {
-    delta = 1 + MHD_random_ () % (size - i);
+    delta = 1 + ((size_t) MHD_random_ ()) % (size - i);
     if (MHD_YES !=
         MHD_post_process (pp,
                           &data[i],
diff --git a/src/microhttpd/test_set_panic.c b/src/microhttpd/test_set_panic.c
index 1777dc0f..f1548380 100644
--- a/src/microhttpd/test_set_panic.c
+++ b/src/microhttpd/test_set_panic.c
@@ -791,7 +791,14 @@ _MHD_dumbClient_needs_process (const struct 
_MHD_dumbClient *clnt)
   case DUMB_CLIENT_REQ_SENT:
   case DUMB_CLIENT_HEADER_RECVEIVED:
   case DUMB_CLIENT_BODY_RECVEIVED:
+  case DUMB_CLIENT_FINISHED:
     return ! 0;
+  case DUMB_CLIENT_CONNECTING:
+  case DUMB_CLIENT_CONNECTED:
+  case DUMB_CLIENT_REQ_SENDING:
+  case DUMB_CLIENT_HEADER_RECVEIVING:
+  case DUMB_CLIENT_BODY_RECVEIVING:
+  case DUMB_CLIENT_FINISHING:
   default:
     return 0;
   }
@@ -841,6 +848,8 @@ _MHD_dumbClient_process (struct _MHD_dumbClient *clnt)
     case DUMB_CLIENT_FINISHING:
       _MHD_dumbClient_finalize (clnt);
       break;
+    case DUMB_CLIENT_FINISHED:
+      return ! 0;
     default:
       mhd_assert (0);
       mhdErrorExit ();
diff --git a/src/microhttpd/test_upgrade.c b/src/microhttpd/test_upgrade.c
index 2cdc880b..5c95a10c 100644
--- a/src/microhttpd/test_upgrade.c
+++ b/src/microhttpd/test_upgrade.c
@@ -596,7 +596,7 @@ static pthread_t pt_client;
 static volatile bool done;
 
 
-const char *
+static const char *
 term_reason_str (enum MHD_RequestTerminationCode term_code)
 {
   switch ((int) term_code)
@@ -776,7 +776,7 @@ send_all (struct wr_socket *sock,
   size_t off;
 
   make_blocking (wr_fd (sock));
-  for (off = 0; off < len; off += ret)
+  for (off = 0; off < len; off += (size_t) ret)
   {
     ret = wr_send (sock,
                    &text[off],
@@ -856,7 +856,7 @@ recv_all (struct wr_socket *sock,
   size_t off;
 
   make_blocking (wr_fd (sock));
-  for (off = 0; off < len; off += ret)
+  for (off = 0; off < len; off += (size_t) ret)
   {
     ret = wr_recv (sock,
                    &buf[off],
@@ -1117,8 +1117,12 @@ run_mhd_select_loop (struct MHD_Daemon *daemon)
                               &to64);
     if (1000 < to64)
       to64 = 1000;
-    tv.tv_sec = to64 / 1000;
-    tv.tv_usec = 1000 * (to64 % 1000);
+#if ! defined(_WIN32) || defined(__CYGWIN__)
+    tv.tv_sec = (time_t) (to64 / 1000);
+#else  /* Native W32 */
+    tv.tv_sec = (long) (to64 / 1000);
+#endif /* Native W32 */
+    tv.tv_usec = (long) (1000 * (to64 % 1000));
     if (0 > MHD_SYS_select_ (max_fd + 1,
                              &rs,
                              &ws,
@@ -1132,7 +1136,7 @@ run_mhd_select_loop (struct MHD_Daemon *daemon)
       if ((WSAEINVAL != WSAGetLastError ()) ||
           (0 != rs.fd_count) || (0 != ws.fd_count) || (0 != es.fd_count) )
         externalErrorExitDesc ("Unexpected select() error");
-      Sleep (tv.tv_sec * 1000 + tv.tv_usec / 1000);
+      Sleep ((DWORD) (tv.tv_sec * 1000 + tv.tv_usec / 1000));
 #endif
     }
     MHD_run_from_select (daemon,
@@ -1250,8 +1254,8 @@ static bool test_tls;
  * @param flags which event loop style should be tested
  * @param pool size of the thread pool, 0 to disable
  */
-static int
-test_upgrade (int flags,
+static unsigned int
+test_upgrade (unsigned int flags,
               unsigned int pool)
 {
   struct MHD_Daemon *d = NULL;
@@ -1368,8 +1372,8 @@ int
 main (int argc,
       char *const *argv)
 {
-  int error_count = 0;
-  int res;
+  unsigned int error_count = 0;
+  unsigned int res;
 
   use_tls_tool = TLS_CLI_NO_TOOL;
   test_tls = has_in_name (argv[0], "_tls");
@@ -1381,6 +1385,7 @@ main (int argc,
 
   if (test_tls)
   {
+    use_tls_tool = TLS_LIB_GNUTLS;   /* Should be always available as MHD uses 
it. */
 #ifdef HTTPS_SUPPORT
     if (has_param (argc, argv, "--use-gnutls-cli"))
       use_tls_tool = TLS_CLI_GNUTLS;
@@ -1394,8 +1399,6 @@ main (int argc,
     else if (0 == system ("openssl version 1> /dev/null 2> /dev/null"))
       use_tls_tool = TLS_CLI_OPENSSL;
 #endif /* HAVE_FORK && HAVE_WAITPID */
-    else
-      use_tls_tool = TLS_LIB_GNUTLS;   /* Should be available as MHD use it. */
     if (verbose)
     {
       switch (use_tls_tool)
@@ -1409,6 +1412,7 @@ main (int argc,
       case TLS_LIB_GNUTLS:
         printf ("GnuTLS library will be used for testing.\n");
         break;
+      case TLS_CLI_NO_TOOL:
       default:
         externalErrorExitDesc ("Wrong 'use_tls_tool' value");
       }
@@ -1437,7 +1441,7 @@ main (int argc,
   error_count += res;
   if (res)
     fprintf (stderr,
-             "FAILED: Upgrade with external select, return code %d.\n",
+             "FAILED: Upgrade with external select, return code %u.\n",
              res);
   else if (verbose)
     printf ("PASSED: Upgrade with external select.\n");
@@ -1449,7 +1453,7 @@ main (int argc,
   error_count += res;
   if (res)
     fprintf (stderr,
-             "FAILED: Upgrade with external 'auto', return code %d.\n",
+             "FAILED: Upgrade with external 'auto', return code %u.\n",
              res);
   else if (verbose)
     printf ("PASSED: Upgrade with external 'auto'.\n");
@@ -1461,7 +1465,7 @@ main (int argc,
   error_count += res;
   if (res)
     fprintf (stderr,
-             "FAILED: Upgrade with external select with EPOLL, return code 
%d.\n",
+             "FAILED: Upgrade with external select with EPOLL, return code 
%u.\n",
              res);
   else if (verbose)
     printf ("PASSED: Upgrade with external select with EPOLL.\n");
@@ -1475,7 +1479,7 @@ main (int argc,
   error_count += res;
   if (res)
     fprintf (stderr,
-             "FAILED: Upgrade with thread per connection, return code %d.\n",
+             "FAILED: Upgrade with thread per connection, return code %u.\n",
              res);
   else if (verbose)
     printf ("PASSED: Upgrade with thread per connection.\n");
@@ -1487,7 +1491,7 @@ main (int argc,
   error_count += res;
   if (res)
     fprintf (stderr,
-             "FAILED: Upgrade with thread per connection and 'auto', return 
code %d.\n",
+             "FAILED: Upgrade with thread per connection and 'auto', return 
code %u.\n",
              res);
   else if (verbose)
     printf ("PASSED: Upgrade with thread per connection and 'auto'.\n");
@@ -1499,7 +1503,7 @@ main (int argc,
   error_count += res;
   if (res)
     fprintf (stderr,
-             "FAILED: Upgrade with thread per connection and poll, return code 
%d.\n",
+             "FAILED: Upgrade with thread per connection and poll, return code 
%u.\n",
              res);
   else if (verbose)
     printf ("PASSED: Upgrade with thread per connection and poll.\n");
@@ -1512,7 +1516,7 @@ main (int argc,
   error_count += res;
   if (res)
     fprintf (stderr,
-             "FAILED: Upgrade with internal select, return code %d.\n",
+             "FAILED: Upgrade with internal select, return code %u.\n",
              res);
   else if (verbose)
     printf ("PASSED: Upgrade with internal select.\n");
@@ -1522,7 +1526,7 @@ main (int argc,
   error_count += res;
   if (res)
     fprintf (stderr,
-             "FAILED: Upgrade with internal select with thread pool, return 
code %d.\n",
+             "FAILED: Upgrade with internal select with thread pool, return 
code %u.\n",
              res);
   else if (verbose)
     printf ("PASSED: Upgrade with internal select with thread pool.\n");
@@ -1532,7 +1536,7 @@ main (int argc,
   error_count += res;
   if (res)
     fprintf (stderr,
-             "FAILED: Upgrade with internal 'auto' return code %d.\n",
+             "FAILED: Upgrade with internal 'auto' return code %u.\n",
              res);
   else if (verbose)
     printf ("PASSED: Upgrade with internal 'auto'.\n");
@@ -1542,7 +1546,7 @@ main (int argc,
   error_count += res;
   if (res)
     fprintf (stderr,
-             "FAILED: Upgrade with internal 'auto' with thread pool, return 
code %d.\n",
+             "FAILED: Upgrade with internal 'auto' with thread pool, return 
code %u.\n",
              res);
   else if (verbose)
     printf ("PASSED: Upgrade with internal 'auto' with thread pool.\n");
@@ -1553,7 +1557,7 @@ main (int argc,
   error_count += res;
   if (res)
     fprintf (stderr,
-             "FAILED: Upgrade with internal poll, return code %d.\n",
+             "FAILED: Upgrade with internal poll, return code %u.\n",
              res);
   else if (verbose)
     printf ("PASSED: Upgrade with internal poll.\n");
@@ -1562,7 +1566,7 @@ main (int argc,
   fflush_allstd ();
   if (res)
     fprintf (stderr,
-             "FAILED: Upgrade with internal poll with thread pool, return code 
%d.\n",
+             "FAILED: Upgrade with internal poll with thread pool, return code 
%u.\n",
              res);
   else if (verbose)
     printf ("PASSED: Upgrade with internal poll with thread pool.\n");
@@ -1573,7 +1577,7 @@ main (int argc,
   fflush_allstd ();
   if (res)
     fprintf (stderr,
-             "FAILED: Upgrade with internal epoll, return code %d.\n",
+             "FAILED: Upgrade with internal epoll, return code %u.\n",
              res);
   else if (verbose)
     printf ("PASSED: Upgrade with internal epoll.\n");
@@ -1582,7 +1586,7 @@ main (int argc,
   fflush_allstd ();
   if (res)
     fprintf (stderr,
-             "FAILED: Upgrade with internal epoll, return code %d.\n",
+             "FAILED: Upgrade with internal epoll, return code %u.\n",
              res);
   else if (verbose)
     printf ("PASSED: Upgrade with internal epoll.\n");
diff --git a/src/microhttpd/test_upgrade_large.c 
b/src/microhttpd/test_upgrade_large.c
index 2979325b..e6c9b01b 100644
--- a/src/microhttpd/test_upgrade_large.c
+++ b/src/microhttpd/test_upgrade_large.c
@@ -764,7 +764,7 @@ static pthread_t pt_client;
 static volatile bool done;
 
 
-const char *
+static const char *
 term_reason_str (enum MHD_RequestTerminationCode term_code)
 {
   switch ((int) term_code)
@@ -935,7 +935,7 @@ make_blocking (MHD_socket fd)
 
 
 static void
-kick_select ()
+kick_select (void)
 {
   if (MHD_ITC_IS_VALID_ (kicker))
   {
@@ -953,7 +953,7 @@ send_all (struct wr_socket *sock,
   size_t off;
 
   make_blocking (wr_fd (sock));
-  for (off = 0; off < len; off += ret)
+  for (off = 0; off < len; off += (size_t) ret)
   {
     ret = wr_send (sock,
                    &text[off],
@@ -1033,7 +1033,7 @@ recv_all (struct wr_socket *sock,
   size_t off;
 
   make_blocking (wr_fd (sock));
-  for (off = 0; off < len; off += ret)
+  for (off = 0; off < len; off += (size_t) ret)
   {
     ret = wr_recv (sock,
                    &buf[off],
@@ -1050,10 +1050,10 @@ recv_all (struct wr_socket *sock,
     }
     if (0 == ret)
       mhdErrorExitDesc ("The server unexpectedly closed connection");
-    if (0 != strncmp (text, buf, off + ret))
+    if (0 != strncmp (text, buf, off + (size_t) ret))
     {
       fprintf (stderr, "Wrong received text. Expected: '%s' ."
-               "Got: '%.*s'. ", text, (int) (off + ret), buf);
+               "Got: '%.*s'. ", text, (int) (off + (size_t) ret), buf);
       mhdErrorExit ();
     }
   }
@@ -1301,8 +1301,12 @@ run_mhd_select_loop (struct MHD_Daemon *daemon)
                               &to64);
     if (1000 < to64)
       to64 = 1000;
-    tv.tv_sec = to64 / 1000;
-    tv.tv_usec = 1000 * (to64 % 1000);
+#if ! defined(_WIN32) || defined(__CYGWIN__)
+    tv.tv_sec = (time_t) (to64 / 1000);
+#else  /* Native W32 */
+    tv.tv_sec = (long) (to64 / 1000);
+#endif /* Native W32 */
+    tv.tv_usec = (long) (1000 * (to64 % 1000));
     if (0 > MHD_SYS_select_ (max_fd + 1,
                              &rs,
                              &ws,
@@ -1316,7 +1320,7 @@ run_mhd_select_loop (struct MHD_Daemon *daemon)
       if ((WSAEINVAL != WSAGetLastError ()) ||
           (0 != rs.fd_count) || (0 != ws.fd_count) || (0 != es.fd_count) )
         externalErrorExitDesc ("Unexpected select() error");
-      Sleep (tv.tv_sec * 1000 + tv.tv_usec / 1000);
+      Sleep ((DWORD) (tv.tv_sec * 1000 + tv.tv_usec / 1000));
 #endif
     }
     if (FD_ISSET (MHD_itc_r_fd_ (kicker), &rs))
@@ -1438,8 +1442,8 @@ static bool test_tls;
  * @param flags which event loop style should be tested
  * @param pool size of the thread pool, 0 to disable
  */
-static int
-test_upgrade (int flags,
+static unsigned int
+test_upgrade (unsigned int flags,
               unsigned int pool)
 {
   struct MHD_Daemon *d = NULL;
@@ -1569,8 +1573,8 @@ int
 main (int argc,
       char *const *argv)
 {
-  int error_count = 0;
-  int res;
+  unsigned int error_count = 0;
+  unsigned int res;
 
   use_tls_tool = TLS_CLI_NO_TOOL;
   test_tls = has_in_name (argv[0], "_tls");
@@ -1582,6 +1586,7 @@ main (int argc,
   if (test_tls)
   {
 #ifdef HTTPS_SUPPORT
+    use_tls_tool = TLS_LIB_GNUTLS;   /* Should be always available as MHD uses 
it. */
     if (has_param (argc, argv, "--use-gnutls-cli"))
       use_tls_tool = TLS_CLI_GNUTLS;
     else if (has_param (argc, argv, "--use-openssl"))
@@ -1594,8 +1599,6 @@ main (int argc,
     else if (0 == system ("openssl version 1> /dev/null 2> /dev/null"))
       use_tls_tool = TLS_CLI_OPENSSL;
 #endif /* HAVE_FORK && HAVE_WAITPID */
-    else
-      use_tls_tool = TLS_LIB_GNUTLS;   /* Should be available as MHD use it. */
     if (verbose)
     {
       switch (use_tls_tool)
@@ -1609,6 +1612,7 @@ main (int argc,
       case TLS_LIB_GNUTLS:
         printf ("GnuTLS library will be used for testing.\n");
         break;
+      case TLS_CLI_NO_TOOL:
       default:
         externalErrorExitDesc ("Wrong 'use_tls_tool' value");
       }
@@ -1637,7 +1641,7 @@ main (int argc,
   error_count += res;
   if (res)
     fprintf (stderr,
-             "FAILED: Upgrade with external select, return code %d.\n",
+             "FAILED: Upgrade with external select, return code %u.\n",
              res);
   else if (verbose)
     printf ("PASSED: Upgrade with external select.\n");
@@ -1649,7 +1653,7 @@ main (int argc,
   error_count += res;
   if (res)
     fprintf (stderr,
-             "FAILED: Upgrade with external 'auto', return code %d.\n",
+             "FAILED: Upgrade with external 'auto', return code %u.\n",
              res);
   else if (verbose)
     printf ("PASSED: Upgrade with external 'auto'.\n");
@@ -1661,7 +1665,7 @@ main (int argc,
   error_count += res;
   if (res)
     fprintf (stderr,
-             "FAILED: Upgrade with external select with EPOLL, return code 
%d.\n",
+             "FAILED: Upgrade with external select with EPOLL, return code 
%u.\n",
              res);
   else if (verbose)
     printf ("PASSED: Upgrade with external select with EPOLL.\n");
@@ -1675,7 +1679,7 @@ main (int argc,
   error_count += res;
   if (res)
     fprintf (stderr,
-             "FAILED: Upgrade with thread per connection, return code %d.\n",
+             "FAILED: Upgrade with thread per connection, return code %u.\n",
              res);
   else if (verbose)
     printf ("PASSED: Upgrade with thread per connection.\n");
@@ -1687,7 +1691,7 @@ main (int argc,
   error_count += res;
   if (res)
     fprintf (stderr,
-             "FAILED: Upgrade with thread per connection and 'auto', return 
code %d.\n",
+             "FAILED: Upgrade with thread per connection and 'auto', return 
code %u.\n",
              res);
   else if (verbose)
     printf ("PASSED: Upgrade with thread per connection and 'auto'.\n");
@@ -1699,7 +1703,7 @@ main (int argc,
   error_count += res;
   if (res)
     fprintf (stderr,
-             "FAILED: Upgrade with thread per connection and poll, return code 
%d.\n",
+             "FAILED: Upgrade with thread per connection and poll, return code 
%u.\n",
              res);
   else if (verbose)
     printf ("PASSED: Upgrade with thread per connection and poll.\n");
@@ -1712,7 +1716,7 @@ main (int argc,
   error_count += res;
   if (res)
     fprintf (stderr,
-             "FAILED: Upgrade with internal select, return code %d.\n",
+             "FAILED: Upgrade with internal select, return code %u.\n",
              res);
   else if (verbose)
     printf ("PASSED: Upgrade with internal select.\n");
@@ -1722,7 +1726,7 @@ main (int argc,
   error_count += res;
   if (res)
     fprintf (stderr,
-             "FAILED: Upgrade with internal select with thread pool, return 
code %d.\n",
+             "FAILED: Upgrade with internal select with thread pool, return 
code %u.\n",
              res);
   else if (verbose)
     printf ("PASSED: Upgrade with internal select with thread pool.\n");
@@ -1732,7 +1736,7 @@ main (int argc,
   error_count += res;
   if (res)
     fprintf (stderr,
-             "FAILED: Upgrade with internal 'auto' return code %d.\n",
+             "FAILED: Upgrade with internal 'auto' return code %u.\n",
              res);
   else if (verbose)
     printf ("PASSED: Upgrade with internal 'auto'.\n");
@@ -1742,7 +1746,7 @@ main (int argc,
   error_count += res;
   if (res)
     fprintf (stderr,
-             "FAILED: Upgrade with internal 'auto' with thread pool, return 
code %d.\n",
+             "FAILED: Upgrade with internal 'auto' with thread pool, return 
code %u.\n",
              res);
   else if (verbose)
     printf ("PASSED: Upgrade with internal 'auto' with thread pool.\n");
@@ -1753,7 +1757,7 @@ main (int argc,
   error_count += res;
   if (res)
     fprintf (stderr,
-             "FAILED: Upgrade with internal poll, return code %d.\n",
+             "FAILED: Upgrade with internal poll, return code %u.\n",
              res);
   else if (verbose)
     printf ("PASSED: Upgrade with internal poll.\n");
@@ -1762,7 +1766,7 @@ main (int argc,
   fflush_allstd ();
   if (res)
     fprintf (stderr,
-             "FAILED: Upgrade with internal poll with thread pool, return code 
%d.\n",
+             "FAILED: Upgrade with internal poll with thread pool, return code 
%u.\n",
              res);
   else if (verbose)
     printf ("PASSED: Upgrade with internal poll with thread pool.\n");
@@ -1773,7 +1777,7 @@ main (int argc,
   fflush_allstd ();
   if (res)
     fprintf (stderr,
-             "FAILED: Upgrade with internal epoll, return code %d.\n",
+             "FAILED: Upgrade with internal epoll, return code %u.\n",
              res);
   else if (verbose)
     printf ("PASSED: Upgrade with internal epoll.\n");
@@ -1782,7 +1786,7 @@ main (int argc,
   fflush_allstd ();
   if (res)
     fprintf (stderr,
-             "FAILED: Upgrade with internal epoll, return code %d.\n",
+             "FAILED: Upgrade with internal epoll, return code %u.\n",
              res);
   else if (verbose)
     printf ("PASSED: Upgrade with internal epoll.\n");

-- 
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]