gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [libmicrohttpd] branch master updated (fea6bf18 -> 443d072f


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] branch master updated (fea6bf18 -> 443d072f)
Date: Mon, 10 Apr 2017 22:44:19 +0200

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

karlson2k pushed a change to branch master
in repository libmicrohttpd.

    from fea6bf18 HTTPS test fixes and improvements: always skip tests if 
libcurl do not support HTTPS (instead of failing) return 99 in case of global 
errors (MHD-unrelated) print error result if test if failed fixed ignored 
result of epoll test in test_https_get_select allow compilation by C89 compiler
     new b70a0b2b Cosmetic fixes
     new 443d072f test_get_response_cleanup: ignore SIGPIPE on Solaris

The 2 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/connection.c              |  2 +-
 src/microhttpd/test_str.c                |  4 ++--
 src/testcurl/test_get_response_cleanup.c | 10 ++++++++++
 3 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 70c7268e..a495524a 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -3381,7 +3381,7 @@ MHD_get_connection_info (struct MHD_Connection 
*connection,
       return (const union MHD_ConnectionInfo *) 
&connection->connection_timeout_dummy;
     default:
       return NULL;
-    };
+    }
 }
 
 
diff --git a/src/microhttpd/test_str.c b/src/microhttpd/test_str.c
index e8581c22..d64dad9e 100644
--- a/src/microhttpd/test_str.c
+++ b/src/microhttpd/test_str.c
@@ -1951,7 +1951,7 @@ int check_strx_to_uint32_n_no_val(void)
         {
           size_t rs;
           const struct str_with_len * const t = str_no_num + i;
-          static const uint32_t rnd_val = 3214314212;
+          static const uint32_t rnd_val = 3214314212L;
           size_t len;
 
           for (len = 0; len <= t->len + 1; len++)
@@ -2397,7 +2397,7 @@ int check_strx_to_uint64_n_no_val(void)
         {
           size_t rs;
           const struct str_with_len * const t = str_no_num + i;
-          static const uint64_t rnd_val = 3214314212;
+          static const uint64_t rnd_val = 3214314212L;
           size_t len;
 
           for (len = 0; len <= t->len + 1; len++)
diff --git a/src/testcurl/test_get_response_cleanup.c 
b/src/testcurl/test_get_response_cleanup.c
index 2833899c..76657262 100644
--- a/src/testcurl/test_get_response_cleanup.c
+++ b/src/testcurl/test_get_response_cleanup.c
@@ -35,6 +35,9 @@
 #include <sys/types.h>
 #include <sys/wait.h>
 #include <fcntl.h>
+#ifdef __sun
+#include <signal.h>
+#endif /* __sun */
 
 #ifndef WINDOWS
 #include <sys/socket.h>
@@ -303,6 +306,13 @@ int
 main (int argc, char *const *argv)
 {
   unsigned int errorCount = 0;
+#ifdef __sun
+  struct sigaction act;
+
+  /* Solaris has no way to disable SIGPIPE on socket disconnect. */
+  act.sa_handler = SIG_IGN;
+  sigaction(SIGPIPE, &act, NULL);
+#endif /* __sun */
 
   oneone = (NULL != strrchr (argv[0], (int) '/')) ?
     (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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