gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] branch master updated: Formatting and minor fix for 61fa


From: gnunet
Subject: [libmicrohttpd] branch master updated: Formatting and minor fix for 61fa3896442b5629e28d36d4e9e924440e03d873
Date: Fri, 16 Apr 2021 16:19:33 +0200

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

The following commit(s) were added to refs/heads/master by this push:
     new 9829eb34 Formatting and minor fix for 
61fa3896442b5629e28d36d4e9e924440e03d873
9829eb34 is described below

commit 9829eb349801efd7bc89fc791bb0f9e8f18221a6
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Fri Apr 16 17:17:28 2021 +0300

    Formatting and minor fix for 61fa3896442b5629e28d36d4e9e924440e03d873
---
 src/microhttpd/daemon.c   |  2 --
 src/microhttpd/mhd_send.c | 60 +++++++++++++++++++++++------------------------
 2 files changed, 30 insertions(+), 32 deletions(-)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 294ed722..b91278a9 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -6713,8 +6713,6 @@ MHD_start_daemon_va (unsigned int flags,
         servaddr = (struct sockaddr *) &servaddr4;
       }
     }
-    else
-      daemon->listen_is_unix = _MHD_UNKNOWN;
     daemon->listen_fd = listen_fd;
     if (0 != (*pflags & MHD_USE_IPv6))
     {
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index 7637773e..02079c03 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -189,23 +189,23 @@ MHD_connection_set_nodelay_state_ (struct MHD_Connection 
*connection,
   err_code = MHD_socket_get_error_ ();
   switch (err_code)
   {
-    case EINVAL:
-    case ENOPROTOOPT:
-    case ENOTSOCK:
-      if (_MHD_NO == connection->is_nonip)
-      {
+  case EINVAL:
+  case ENOPROTOOPT:
+  case ENOTSOCK:
+    if (_MHD_NO == connection->is_nonip)
+    {
 #ifdef HAVE_MESSAGES
-    MHD_DLOG (connection->daemon,
-              _ ("Setting %s option to %s state failed "
-                 "for TCP/IP socket %d: %s\n"),
-              "TCP_NODELAY",
-              nodelay_state ? _ ("ON") : _ ("OFF"),
-              (int) connection->socket_fd,
-              MHD_socket_strerr_ (err_code));
+      MHD_DLOG (connection->daemon,
+                _ ("Setting %s option to %s state failed "
+                   "for TCP/IP socket %d: %s\n"),
+                "TCP_NODELAY",
+                nodelay_state ? _ ("ON") : _ ("OFF"),
+                (int) connection->socket_fd,
+                MHD_socket_strerr_ (err_code));
 #endif /* HAVE_MESSAGES */
-      }
-      else
-        connection->is_nonip = _MHD_YES;
+    }
+    else
+      connection->is_nonip = _MHD_YES;
     break;
   case EBADF:
   case EFAULT:
@@ -258,23 +258,23 @@ connection_set_cork_state_ (struct MHD_Connection 
*connection,
   err_code = MHD_socket_get_error_ ();
   switch (err_code)
   {
-    case EINVAL:
-    case ENOPROTOOPT:
-    case ENOTSOCK:
-      if (_MHD_NO == connection->is_nonip)
-      {
+  case EINVAL:
+  case ENOPROTOOPT:
+  case ENOTSOCK:
+    if (_MHD_NO == connection->is_nonip)
+    {
 #ifdef HAVE_MESSAGES
-    MHD_DLOG (connection->daemon,
-              _ ("Setting %s option to %s state failed "
-                 "for TCP/IP socket %d: %s\n"),
-              "TCP_NODELAY",
-              nodelay_state ? _ ("ON") : _ ("OFF"),
-              (int) connection->socket_fd,
-              MHD_socket_strerr_ (err_code));
+      MHD_DLOG (connection->daemon,
+                _ ("Setting %s option to %s state failed "
+                   "for TCP/IP socket %d: %s\n"),
+                "TCP_NODELAY",
+                nodelay_state ? _ ("ON") : _ ("OFF"),
+                (int) connection->socket_fd,
+                MHD_socket_strerr_ (err_code));
 #endif /* HAVE_MESSAGES */
-      }
-      else
-        connection->is_nonip = _MHD_YES;
+    }
+    else
+      connection->is_nonip = _MHD_YES;
     break;
   case EBADF:
   case EFAULT:

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