gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] branch master updated (1b435684 -> 52b79898)


From: gnunet
Subject: [libmicrohttpd] branch master updated (1b435684 -> 52b79898)
Date: Tue, 23 Nov 2021 13:12:01 +0100

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

karlson2k pushed a change to branch master
in repository libmicrohttpd.

    from 1b435684 Clarified termination reasons description
     new 742e5bd1 Tests: explicitly enforced zero or one exit codes
     new 7f68d8de Tests: fixed code style
     new 52b79898 test_client_put_stop: use content longer than 15 bytes

The 3 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_client_put_stop.c         |  2 +-
 src/testcurl/https/test_tls_extensions.c      |  2 +-
 src/testcurl/test_concurrent_stop.c           | 10 +++++-----
 src/testcurl/test_delete.c                    |  4 ++--
 src/testcurl/test_digestauth.c                |  4 ++--
 src/testcurl/test_digestauth_sha256.c         |  4 ++--
 src/testcurl/test_digestauth_with_arguments.c |  4 ++--
 src/testcurl/test_get.c                       |  2 +-
 src/testcurl/test_get_chunked.c               |  2 +-
 src/testcurl/test_get_empty.c                 |  2 +-
 src/testcurl/test_get_iovec.c                 | 16 ++++++++--------
 src/testcurl/test_get_response_cleanup.c      |  2 +-
 src/testcurl/test_get_sendfile.c              |  2 +-
 src/testcurl/test_iplimit.c                   |  2 +-
 src/testcurl/test_long_header.c               |  2 +-
 src/testcurl/test_parse_cookies.c             |  2 +-
 src/testcurl/test_patch.c                     |  4 ++--
 src/testcurl/test_post.c                      |  2 +-
 src/testcurl/test_post_loop.c                 |  2 +-
 src/testcurl/test_postform.c                  |  2 +-
 src/testcurl/test_process_arguments.c         |  2 +-
 src/testcurl/test_process_headers.c           |  2 +-
 src/testcurl/test_put.c                       |  4 ++--
 src/testcurl/test_put_chunked.c               |  2 +-
 src/testcurl/test_quiesce.c                   |  6 +++---
 src/testcurl/test_timeout.c                   |  2 +-
 src/testcurl/test_urlparse.c                  |  2 +-
 src/testzzuf/test_get.c                       |  2 +-
 src/testzzuf/test_get_chunked.c               |  2 +-
 src/testzzuf/test_long_header.c               |  2 +-
 src/testzzuf/test_post.c                      |  2 +-
 src/testzzuf/test_post_form.c                 |  2 +-
 src/testzzuf/test_put.c                       |  2 +-
 src/testzzuf/test_put_chunked.c               |  2 +-
 src/testzzuf/test_put_large.c                 |  2 +-
 35 files changed, 54 insertions(+), 54 deletions(-)

diff --git a/src/microhttpd/test_client_put_stop.c 
b/src/microhttpd/test_client_put_stop.c
index 882267c8..7d1c66c0 100644
--- a/src/microhttpd/test_client_put_stop.c
+++ b/src/microhttpd/test_client_put_stop.c
@@ -92,7 +92,7 @@
 
 #define REQ_METHOD "PUT"
 
-#define REQ_BODY "Some data."
+#define REQ_BODY "Some content data."
 
 #define REQ_LINE_END "\r\n"
 
diff --git a/src/testcurl/https/test_tls_extensions.c 
b/src/testcurl/https/test_tls_extensions.c
index 338fcd91..4754632a 100644
--- a/src/testcurl/https/test_tls_extensions.c
+++ b/src/testcurl/https/test_tls_extensions.c
@@ -296,5 +296,5 @@ main (int argc, char *const *argv)
   curl_global_cleanup ();
   fclose (test_fd);
 
-  return errorCount;
+  return (0 == errorCount) ? 0 : 1;       /* 0 == pass */
 }
diff --git a/src/testcurl/test_concurrent_stop.c 
b/src/testcurl/test_concurrent_stop.c
index 6cea8abf..ee41ef94 100644
--- a/src/testcurl/test_concurrent_stop.c
+++ b/src/testcurl/test_concurrent_stop.c
@@ -105,7 +105,7 @@ start_watchdog (int timeout, const char *obj_name)
   watchdog_continue = 1;
   watchdog_obj = obj_name;
   if (0 != pthread_create (&watchdog_tid, NULL, &thread_watchdog,
-                           (void*) (intptr_t) timeout))
+                           (void *) (intptr_t) timeout))
   {
     fprintf (stderr, "Failed to start watchdog.\n");
     _exit (99);
@@ -173,7 +173,7 @@ thread_gets (void *param)
 {
   CURL *c;
   CURLcode errornum;
-  char *const url = (char*) param;
+  char *const url = (char *) param;
 
   c = NULL;
   c = curl_easy_init ();
@@ -226,7 +226,7 @@ do_gets (void *param)
 
   for (j = 0; j < PAR; j++)
   {
-    if (0 != pthread_create (&par[j], NULL, &thread_gets, (void*) url))
+    if (0 != pthread_create (&par[j], NULL, &thread_gets, (void *) url))
     {
       fprintf (stderr, "pthread_create failed.\n");
       continue_requesting = 0;
@@ -251,7 +251,7 @@ start_gets (int port)
 {
   pthread_t tid;
   continue_requesting = 1;
-  if (0 != pthread_create (&tid, NULL, &do_gets, (void*) (intptr_t) port))
+  if (0 != pthread_create (&tid, NULL, &do_gets, (void *) (intptr_t) port))
   {
     fprintf (stderr, "pthread_create failed.\n");
     _exit (99);
@@ -383,5 +383,5 @@ main (int argc, char *const *argv)
   if (errorCount != 0)
     fprintf (stderr, "Error (code: %u)\n", errorCount);
   curl_global_cleanup ();
-  return errorCount != 0;       /* 0 == pass */
+  return (0 == errorCount) ? 0 : 1;       /* 0 == pass */
 }
diff --git a/src/testcurl/test_delete.c b/src/testcurl/test_delete.c
index 94f2730e..43bd2840 100644
--- a/src/testcurl/test_delete.c
+++ b/src/testcurl/test_delete.c
@@ -115,7 +115,7 @@ ahc_echo (void *cls,
     *done = 1;
     return MHD_YES;
   }
-  response = MHD_create_response_from_buffer (strlen (url), (void*) url,
+  response = MHD_create_response_from_buffer (strlen (url), (void *) url,
                                               MHD_RESPMEM_MUST_COPY);
   ret = MHD_queue_response (connection, MHD_HTTP_OK, response);
   MHD_destroy_response (response);
@@ -562,5 +562,5 @@ main (int argc, char *const *argv)
   if (errorCount != 0)
     fprintf (stderr, "Error (code: %u)\n", errorCount);
   curl_global_cleanup ();
-  return errorCount != 0;       /* 0 == pass */
+  return (0 == errorCount) ? 0 : 1;       /* 0 == pass */
 }
diff --git a/src/testcurl/test_digestauth.c b/src/testcurl/test_digestauth.c
index e93a13bb..3b2f2501 100644
--- a/src/testcurl/test_digestauth.c
+++ b/src/testcurl/test_digestauth.c
@@ -217,7 +217,7 @@ testDigestAuth ()
                GetLastError ());
       return 1;
     }
-    b = CryptGenRandom (cc, 8, (BYTE*) rnd);
+    b = CryptGenRandom (cc, 8, (BYTE *) rnd);
     if (b == 0)
     {
       fprintf (stderr,
@@ -308,5 +308,5 @@ main (int argc, char *const *argv)
   if (errorCount != 0)
     fprintf (stderr, "Error (code: %u)\n", errorCount);
   curl_global_cleanup ();
-  return errorCount != 0;       /* 0 == pass */
+  return (0 == errorCount) ? 0 : 1;       /* 0 == pass */
 }
diff --git a/src/testcurl/test_digestauth_sha256.c 
b/src/testcurl/test_digestauth_sha256.c
index 7cb9557e..a720c69b 100644
--- a/src/testcurl/test_digestauth_sha256.c
+++ b/src/testcurl/test_digestauth_sha256.c
@@ -221,7 +221,7 @@ testDigestAuth ()
                GetLastError ());
       return 1;
     }
-    b = CryptGenRandom (cc, 8, (BYTE*) rnd);
+    b = CryptGenRandom (cc, 8, (BYTE *) rnd);
     if (b == 0)
     {
       fprintf (stderr,
@@ -321,5 +321,5 @@ main (int argc, char *const *argv)
   if (errorCount != 0)
     fprintf (stderr, "Error (code: %u)\n", errorCount);
   curl_global_cleanup ();
-  return errorCount != 0;       /* 0 == pass */
+  return (0 == errorCount) ? 0 : 1;       /* 0 == pass */
 }
diff --git a/src/testcurl/test_digestauth_with_arguments.c 
b/src/testcurl/test_digestauth_with_arguments.c
index 2132ca93..523c9552 100644
--- a/src/testcurl/test_digestauth_with_arguments.c
+++ b/src/testcurl/test_digestauth_with_arguments.c
@@ -196,7 +196,7 @@ testDigestAuth ()
                GetLastError ());
       return 1;
     }
-    b = CryptGenRandom (cc, 8, (BYTE*) rnd);
+    b = CryptGenRandom (cc, 8, (BYTE *) rnd);
     if (b == 0)
     {
       fprintf (stderr, "Failed to generate 8 random bytes: %lu\n",
@@ -281,5 +281,5 @@ main (int argc, char *const *argv)
   if (errorCount != 0)
     fprintf (stderr, "Error (code: %u)\n", errorCount);
   curl_global_cleanup ();
-  return errorCount != 0;       /* 0 == pass */
+  return (0 == errorCount) ? 0 : 1;       /* 0 == pass */
 }
diff --git a/src/testcurl/test_get.c b/src/testcurl/test_get.c
index 8eabdc93..26b32b11 100644
--- a/src/testcurl/test_get.c
+++ b/src/testcurl/test_get.c
@@ -1021,5 +1021,5 @@ main (int argc, char *const *argv)
   else if (verbose)
     printf ("All tests passed.\n");
   curl_global_cleanup ();
-  return errorCount != 0;       /* 0 == pass */
+  return (0 == errorCount) ? 0 : 1;       /* 0 == pass */
 }
diff --git a/src/testcurl/test_get_chunked.c b/src/testcurl/test_get_chunked.c
index 5338a489..e5392d08 100644
--- a/src/testcurl/test_get_chunked.c
+++ b/src/testcurl/test_get_chunked.c
@@ -796,5 +796,5 @@ main (int argc, char *const *argv)
   if (errorCount != 0)
     fprintf (stderr, "Error (code: %u)\n", errorCount);
   curl_global_cleanup ();
-  return errorCount != 0;       /* 0 == pass */
+  return (0 == errorCount) ? 0 : 1;       /* 0 == pass */
 }
diff --git a/src/testcurl/test_get_empty.c b/src/testcurl/test_get_empty.c
index 301b27ec..e75e907c 100644
--- a/src/testcurl/test_get_empty.c
+++ b/src/testcurl/test_get_empty.c
@@ -961,5 +961,5 @@ main (int argc, char *const *argv)
   else if (verbose)
     printf ("All tests passed.\n");
   curl_global_cleanup ();
-  return errorCount != 0;       /* 0 == pass */
+  return (0 == errorCount) ? 0 : 1;       /* 0 == pass */
 }
diff --git a/src/testcurl/test_get_iovec.c b/src/testcurl/test_get_iovec.c
index dbb259b6..ae30f6d6 100644
--- a/src/testcurl/test_get_iovec.c
+++ b/src/testcurl/test_get_iovec.c
@@ -99,7 +99,7 @@ iovncont_free_callback (void *cls)
   unsigned int i;
 
   for (i = 0; i < TESTSTR_IOVCNT; ++i)
-    free ((void*) iov[i].iov_base);
+    free ((void *) iov[i].iov_base);
   free (iov);
 }
 
@@ -245,7 +245,7 @@ err_out:
   for (j = 0; j < TESTSTR_IOVCNT; ++j)
   {
     if (NULL != iov[j].iov_base)
-      free ((void*) iov[j].iov_base);
+      free ((void *) iov[j].iov_base);
   }
   free (iov);
   return MHD_NO;
@@ -270,7 +270,7 @@ testInternalGet (bool contiguous)
       port += 10;
   }
 
-  cbc.buf = (char*) readbuf;
+  cbc.buf = (char *) readbuf;
   cbc.size = sizeof(readbuf);
   cbc.pos = 0;
 
@@ -350,7 +350,7 @@ testMultithreadedGet ()
       port += 10;
   }
 
-  cbc.buf = (char*) readbuf;
+  cbc.buf = (char *) readbuf;
   cbc.size = sizeof(readbuf);
   cbc.pos = 0;
   d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION
@@ -422,7 +422,7 @@ testMultithreadedPoolGet ()
       port += 10;
   }
 
-  cbc.buf = (char*) readbuf;
+  cbc.buf = (char *) readbuf;
   cbc.size = sizeof(readbuf);
   cbc.pos = 0;
   d = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG
@@ -510,7 +510,7 @@ testExternalGet ()
   }
 
   multi = NULL;
-  cbc.buf = (char*) readbuf;
+  cbc.buf = (char *) readbuf;
   cbc.size = sizeof(readbuf);
   cbc.pos = 0;
   d = MHD_start_daemon (MHD_USE_ERROR_LOG,
@@ -678,7 +678,7 @@ testUnknownPortGet ()
   addr.sin_port = 0;
   addr.sin_addr.s_addr = INADDR_ANY;
 
-  cbc.buf = (char*) readbuf;
+  cbc.buf = (char *) readbuf;
   cbc.size = sizeof(readbuf);
   cbc.pos = 0;
   d = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG,
@@ -773,5 +773,5 @@ main (int argc, char *const *argv)
   if (errorCount != 0)
     fprintf (stderr, "Error (code: %u)\n", errorCount);
   curl_global_cleanup ();
-  return errorCount != 0;       /* 0 == pass */
+  return (0 == errorCount) ? 0 : 1;       /* 0 == pass */
 }
diff --git a/src/testcurl/test_get_response_cleanup.c 
b/src/testcurl/test_get_response_cleanup.c
index bdb83e2d..7e0af24f 100644
--- a/src/testcurl/test_get_response_cleanup.c
+++ b/src/testcurl/test_get_response_cleanup.c
@@ -475,5 +475,5 @@ main (int argc, char *const *argv)
   errorCount += testExternalGet ();
   if (errorCount != 0)
     fprintf (stderr, "Error (code: %u)\n", errorCount);
-  return errorCount != 0;       /* 0 == pass */
+  return (0 == errorCount) ? 0 : 1;       /* 0 == pass */
 }
diff --git a/src/testcurl/test_get_sendfile.c b/src/testcurl/test_get_sendfile.c
index c483da40..84929d81 100644
--- a/src/testcurl/test_get_sendfile.c
+++ b/src/testcurl/test_get_sendfile.c
@@ -664,5 +664,5 @@ main (int argc, char *const *argv)
   curl_global_cleanup ();
   unlink (sourcefile);
   free (sourcefile);
-  return errorCount != 0;       /* 0 == pass */
+  return (0 == errorCount) ? 0 : 1;       /* 0 == pass */
 }
diff --git a/src/testcurl/test_iplimit.c b/src/testcurl/test_iplimit.c
index f93c5030..076f15bd 100644
--- a/src/testcurl/test_iplimit.c
+++ b/src/testcurl/test_iplimit.c
@@ -359,5 +359,5 @@ main (int argc, char *const *argv)
   if (errorCount != 0)
     fprintf (stderr, "Error (code: %u)\n", errorCount);
   curl_global_cleanup ();
-  return errorCount != 0;       /* 0 == pass */
+  return (0 == errorCount) ? 0 : 1;       /* 0 == pass */
 }
diff --git a/src/testcurl/test_long_header.c b/src/testcurl/test_long_header.c
index 884df6c9..b76ea90d 100644
--- a/src/testcurl/test_long_header.c
+++ b/src/testcurl/test_long_header.c
@@ -306,5 +306,5 @@ main (int argc, char *const *argv)
   if (errorCount != 0)
     fprintf (stderr, "Error (code: %u)\n", errorCount);
   curl_global_cleanup ();
-  return errorCount != 0;       /* 0 == pass */
+  return (0 == errorCount) ? 0 : 1;       /* 0 == pass */
 }
diff --git a/src/testcurl/test_parse_cookies.c 
b/src/testcurl/test_parse_cookies.c
index a78e0afa..07c67567 100644
--- a/src/testcurl/test_parse_cookies.c
+++ b/src/testcurl/test_parse_cookies.c
@@ -313,5 +313,5 @@ main (int argc, char *const *argv)
   if (errorCount != 0)
     fprintf (stderr, "Error (code: %u)\n", errorCount);
   curl_global_cleanup ();
-  return errorCount != 0;       /* 0 == pass */
+  return (0 == errorCount) ? 0 : 1;       /* 0 == pass */
 }
diff --git a/src/testcurl/test_patch.c b/src/testcurl/test_patch.c
index b44a51c9..f443ad08 100644
--- a/src/testcurl/test_patch.c
+++ b/src/testcurl/test_patch.c
@@ -115,7 +115,7 @@ ahc_echo (void *cls,
     *done = 1;
     return MHD_YES;
   }
-  response = MHD_create_response_from_buffer (strlen (url), (void*) url,
+  response = MHD_create_response_from_buffer (strlen (url), (void *) url,
                                               MHD_RESPMEM_MUST_COPY);
   ret = MHD_queue_response (connection, MHD_HTTP_OK, response);
   MHD_destroy_response (response);
@@ -530,5 +530,5 @@ main (int argc, char *const *argv)
   if (errorCount != 0)
     fprintf (stderr, "Error (code: %u)\n", errorCount);
   curl_global_cleanup ();
-  return errorCount != 0;       /* 0 == pass */
+  return (0 == errorCount) ? 0 : 1;       /* 0 == pass */
 }
diff --git a/src/testcurl/test_post.c b/src/testcurl/test_post.c
index 7bed9a3e..1bf9be70 100644
--- a/src/testcurl/test_post.c
+++ b/src/testcurl/test_post.c
@@ -836,5 +836,5 @@ main (int argc, char *const *argv)
   if (errorCount != 0)
     fprintf (stderr, "Error (code: %u)\n", errorCount);
   curl_global_cleanup ();
-  return errorCount != 0;       /* 0 == pass */
+  return (0 == errorCount) ? 0 : 1;       /* 0 == pass */
 }
diff --git a/src/testcurl/test_post_loop.c b/src/testcurl/test_post_loop.c
index 927c867b..ec929904 100644
--- a/src/testcurl/test_post_loop.c
+++ b/src/testcurl/test_post_loop.c
@@ -690,5 +690,5 @@ main (int argc, char *const *argv)
   if (errorCount != 0)
     fprintf (stderr, "Error (code: %u)\n", errorCount);
   curl_global_cleanup ();
-  return errorCount != 0;       /* 0 == pass */
+  return (0 == errorCount) ? 0 : 1;       /* 0 == pass */
 }
diff --git a/src/testcurl/test_postform.c b/src/testcurl/test_postform.c
index beb23f43..1f60fb06 100644
--- a/src/testcurl/test_postform.c
+++ b/src/testcurl/test_postform.c
@@ -640,5 +640,5 @@ main (int argc, char *const *argv)
   if (errorCount != 0)
     fprintf (stderr, "Error (code: %u)\n", errorCount);
   curl_global_cleanup ();
-  return errorCount != 0;       /* 0 == pass */
+  return (0 == errorCount) ? 0 : 1;       /* 0 == pass */
 }
diff --git a/src/testcurl/test_process_arguments.c 
b/src/testcurl/test_process_arguments.c
index a7aecf88..aaf9681e 100644
--- a/src/testcurl/test_process_arguments.c
+++ b/src/testcurl/test_process_arguments.c
@@ -312,5 +312,5 @@ main (int argc, char *const *argv)
   if (errorCount != 0)
     fprintf (stderr, "Error (code: %u)\n", errorCount);
   curl_global_cleanup ();
-  return errorCount != 0;       /* 0 == pass */
+  return (0 == errorCount) ? 0 : 1;       /* 0 == pass */
 }
diff --git a/src/testcurl/test_process_headers.c 
b/src/testcurl/test_process_headers.c
index e7e8897e..9a84b3ef 100644
--- a/src/testcurl/test_process_headers.c
+++ b/src/testcurl/test_process_headers.c
@@ -572,5 +572,5 @@ main (int argc, char *const *argv)
   if (errorCount != 0)
     fprintf (stderr, "Error (code: %u)\n", errorCount);
   curl_global_cleanup ();
-  return errorCount != 0;       /* 0 == pass */
+  return (0 == errorCount) ? 0 : 1;       /* 0 == pass */
 }
diff --git a/src/testcurl/test_put.c b/src/testcurl/test_put.c
index ce173079..f572a9a8 100644
--- a/src/testcurl/test_put.c
+++ b/src/testcurl/test_put.c
@@ -115,7 +115,7 @@ ahc_echo (void *cls,
     *done = 1;
     return MHD_YES;
   }
-  response = MHD_create_response_from_buffer (strlen (url), (void*) url,
+  response = MHD_create_response_from_buffer (strlen (url), (void *) url,
                                               MHD_RESPMEM_MUST_COPY);
   ret = MHD_queue_response (connection, MHD_HTTP_OK, response);
   MHD_destroy_response (response);
@@ -574,5 +574,5 @@ main (int argc, char *const *argv)
   if (errorCount != 0)
     fprintf (stderr, "Error (code: %u)\n", errorCount);
   curl_global_cleanup ();
-  return errorCount != 0;       /* 0 == pass */
+  return (0 == errorCount) ? 0 : 1;       /* 0 == pass */
 }
diff --git a/src/testcurl/test_put_chunked.c b/src/testcurl/test_put_chunked.c
index a1dee9cf..897f52b1 100644
--- a/src/testcurl/test_put_chunked.c
+++ b/src/testcurl/test_put_chunked.c
@@ -566,5 +566,5 @@ main (int argc, char *const *argv)
   if (errorCount != 0)
     fprintf (stderr, "Error (code: %u)\n", errorCount);
   curl_global_cleanup ();
-  return errorCount != 0;       /* 0 == pass */
+  return (0 == errorCount) ? 0 : 1;       /* 0 == pass */
 }
diff --git a/src/testcurl/test_quiesce.c b/src/testcurl/test_quiesce.c
index f074ffa7..33d34dd5 100644
--- a/src/testcurl/test_quiesce.c
+++ b/src/testcurl/test_quiesce.c
@@ -284,7 +284,7 @@ testGet (int type, int pool_count, int poll_flag)
     return 2;
   }
   if (0 != pthread_create (&thrd, NULL, &ServeOneRequest,
-                           (void*) (intptr_t) fd))
+                           (void *) (intptr_t) fd))
   {
     fprintf (stderr, "pthread_create failed\n");
     curl_easy_cleanup (c);
@@ -303,7 +303,7 @@ testGet (int type, int pool_count, int poll_flag)
     return 2;
   }
 
-  if (0 != pthread_join (thrd, (void**) &thrdRet))
+  if (0 != pthread_join (thrd, (void **) &thrdRet))
   {
     fprintf (stderr, "pthread_join failed\n");
     curl_easy_cleanup (c);
@@ -596,5 +596,5 @@ main (int argc, char *const *argv)
              "Error (code: %u)\n",
              errorCount);
   curl_global_cleanup ();
-  return errorCount != 0;       /* 0 == pass */
+  return (0 == errorCount) ? 0 : 1;       /* 0 == pass */
 }
diff --git a/src/testcurl/test_timeout.c b/src/testcurl/test_timeout.c
index 957fb2cc..8742b9ff 100644
--- a/src/testcurl/test_timeout.c
+++ b/src/testcurl/test_timeout.c
@@ -378,5 +378,5 @@ main (int argc, char *const *argv)
              "Error during test execution (code: %u)\n",
              errorCount);
   curl_global_cleanup ();
-  return errorCount;       /* 0 == pass */
+  return (0 == errorCount) ? 0 : 1;       /* 0 == pass */
 }
diff --git a/src/testcurl/test_urlparse.c b/src/testcurl/test_urlparse.c
index 2550227f..bc0411a9 100644
--- a/src/testcurl/test_urlparse.c
+++ b/src/testcurl/test_urlparse.c
@@ -218,5 +218,5 @@ main (int argc, char *const *argv)
   if (errorCount != 0)
     fprintf (stderr, "Error (code: %u)\n", errorCount);
   curl_global_cleanup ();
-  return errorCount != 0;       /* 0 == pass */
+  return (0 == errorCount) ? 0 : 1;       /* 0 == pass */
 }
diff --git a/src/testzzuf/test_get.c b/src/testzzuf/test_get.c
index 0ab4fcf9..7d3173e7 100644
--- a/src/testzzuf/test_get.c
+++ b/src/testzzuf/test_get.c
@@ -329,5 +329,5 @@ main (int argc, char *const *argv)
   if (errorCount != 0)
     fprintf (stderr, "Error (code: %u)\n", errorCount);
   curl_global_cleanup ();
-  return errorCount != 0;       /* 0 == pass */
+  return (0 == errorCount) ? 0 : 1;       /* 0 == pass */
 }
diff --git a/src/testzzuf/test_get_chunked.c b/src/testzzuf/test_get_chunked.c
index 9fdab22a..cc01b09b 100644
--- a/src/testzzuf/test_get_chunked.c
+++ b/src/testzzuf/test_get_chunked.c
@@ -360,5 +360,5 @@ main (int argc, char *const *argv)
   if (errorCount != 0)
     fprintf (stderr, "Error (code: %u)\n", errorCount);
   curl_global_cleanup ();
-  return errorCount != 0;       /* 0 == pass */
+  return (0 == errorCount) ? 0 : 1;       /* 0 == pass */
 }
diff --git a/src/testzzuf/test_long_header.c b/src/testzzuf/test_long_header.c
index ac53bad6..ab21453c 100644
--- a/src/testzzuf/test_long_header.c
+++ b/src/testzzuf/test_long_header.c
@@ -261,5 +261,5 @@ main (int argc, char *const *argv)
   if (errorCount != 0)
     fprintf (stderr, "Error (code: %u)\n", errorCount);
   curl_global_cleanup ();
-  return errorCount != 0;       /* 0 == pass */
+  return (0 == errorCount) ? 0 : 1;       /* 0 == pass */
 }
diff --git a/src/testzzuf/test_post.c b/src/testzzuf/test_post.c
index 8377af06..bf1416da 100644
--- a/src/testzzuf/test_post.c
+++ b/src/testzzuf/test_post.c
@@ -412,5 +412,5 @@ main (int argc, char *const *argv)
   if (errorCount != 0)
     fprintf (stderr, "Error (code: %u)\n", errorCount);
   curl_global_cleanup ();
-  return errorCount != 0;       /* 0 == pass */
+  return (0 == errorCount) ? 0 : 1;       /* 0 == pass */
 }
diff --git a/src/testzzuf/test_post_form.c b/src/testzzuf/test_post_form.c
index 85a5d3d7..d5a65b77 100644
--- a/src/testzzuf/test_post_form.c
+++ b/src/testzzuf/test_post_form.c
@@ -428,5 +428,5 @@ main (int argc, char *const *argv)
   if (errorCount != 0)
     fprintf (stderr, "Error (code: %u)\n", errorCount);
   curl_global_cleanup ();
-  return errorCount != 0;       /* 0 == pass */
+  return (0 == errorCount) ? 0 : 1;       /* 0 == pass */
 }
diff --git a/src/testzzuf/test_put.c b/src/testzzuf/test_put.c
index 86f7b63a..3b60962a 100644
--- a/src/testzzuf/test_put.c
+++ b/src/testzzuf/test_put.c
@@ -376,5 +376,5 @@ main (int argc, char *const *argv)
   if (errorCount != 0)
     fprintf (stderr, "Error (code: %u)\n", errorCount);
   curl_global_cleanup ();
-  return errorCount != 0;       /* 0 == pass */
+  return (0 == errorCount) ? 0 : 1;       /* 0 == pass */
 }
diff --git a/src/testzzuf/test_put_chunked.c b/src/testzzuf/test_put_chunked.c
index 3a54b78e..83cfe844 100644
--- a/src/testzzuf/test_put_chunked.c
+++ b/src/testzzuf/test_put_chunked.c
@@ -391,5 +391,5 @@ main (int argc, char *const *argv)
   if (errorCount != 0)
     fprintf (stderr, "Error (code: %u)\n", errorCount);
   curl_global_cleanup ();
-  return errorCount != 0;       /* 0 == pass */
+  return (0 == errorCount) ? 0 : 1;       /* 0 == pass */
 }
diff --git a/src/testzzuf/test_put_large.c b/src/testzzuf/test_put_large.c
index 3a3d7fb0..c3cffa3d 100644
--- a/src/testzzuf/test_put_large.c
+++ b/src/testzzuf/test_put_large.c
@@ -399,5 +399,5 @@ main (int argc, char *const *argv)
   if (errorCount != 0)
     fprintf (stderr, "Error (code: %u)\n", errorCount);
   curl_global_cleanup ();
-  return errorCount != 0;       /* 0 == pass */
+  return (0 == errorCount) ? 0 : 1;       /* 0 == pass */
 }

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