gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] branch master updated (3baeda38 -> 07829e85)


From: gnunet
Subject: [libmicrohttpd] branch master updated (3baeda38 -> 07829e85)
Date: Sat, 23 Oct 2021 15:42:06 +0200

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

karlson2k pushed a change to branch master
in repository libmicrohttpd.

    from 3baeda38 test_str: fixed wrong printf format
     new 916886cd Added Lawrence Sebald to the AUTHORS file
     new 07829e85 test_add_conn: used the better way to mute compiler and 
analyzer warnings

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:
 AUTHORS                      | 1 +
 src/testcurl/test_add_conn.c | 7 ++++---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/AUTHORS b/AUTHORS
index 2180cbc9..4cbfe0eb 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -63,6 +63,7 @@ Dirk Brinkmeier
 Jose Bollo <jobol@nonadev.net>
 Jonathan McDougall <jonathanmcdougall@gmail.com>
 Tim Ruhsen <tim.ruehsen@gmx.de>
+Lawrence Sebald <lawrence.sebald@nasa.gov> (iovec-based responses)
 
 Documentation contributions also came from:
 Marco Maggi <marco.maggi-ipsu@poste.it>
diff --git a/src/testcurl/test_add_conn.c b/src/testcurl/test_add_conn.c
index 1c6b3adf..9bd7964f 100644
--- a/src/testcurl/test_add_conn.c
+++ b/src/testcurl/test_add_conn.c
@@ -1053,12 +1053,11 @@ testStopRace (enum testMhdPollType pollType)
   MHD_socket fd2;
   struct addConnParam aParam;
   int ret = 0;              /* Return value of the test */
-  const int c_no_listen = no_listen; /* Local const value to mute analyzer */
 
   d = startTestMhdDaemon (testMhdThreadInternal, pollType,
                           &d_port);
 
-  if (! c_no_listen)
+  if (! no_listen)
   {
     fd1 = socket (PF_INET, SOCK_STREAM, IPPROTO_TCP);
     if (MHD_INVALID_SOCKET == fd1)
@@ -1071,6 +1070,8 @@ testStopRace (enum testMhdPollType pollType)
     if (connect (fd1, (struct sockaddr *) (&sin), sizeof(sin)) < 0)
       externalErrorExitDesc ("socket() failed");
   }
+  else
+    fd1 = MHD_INVALID_SOCKET;
 
   aParam.d = d;
   aParam.lstn_sk = createListeningSocket (&a_port); /* Sets a_port */
@@ -1092,7 +1093,7 @@ testStopRace (enum testMhdPollType pollType)
 
   MHD_stop_daemon (d);
 
-  if (! c_no_listen)
+  if (MHD_INVALID_SOCKET != fd1)
     (void) MHD_socket_close_ (fd1);
   (void) MHD_socket_close_ (aParam.lstn_sk);
   (void) MHD_socket_close_ (fd2);

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