gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] branch master updated: -fix indentation


From: gnunet
Subject: [gnunet] branch master updated: -fix indentation
Date: Mon, 23 Aug 2021 07:41:18 +0200

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

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 987846582 -fix indentation
987846582 is described below

commit 987846582ed27dc699f0f0c4143010ffd2c19329
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Aug 23 07:37:40 2021 +0200

    -fix indentation
---
 src/util/network.c | 28 +++++++++++++---------------
 1 file changed, 13 insertions(+), 15 deletions(-)

diff --git a/src/util/network.c b/src/util/network.c
index 61da37ab7..014701e02 100644
--- a/src/util/network.c
+++ b/src/util/network.c
@@ -506,15 +506,15 @@ GNUNET_NETWORK_socket_bind (struct GNUNET_NETWORK_Handle 
*desc,
 #endif
   if (AF_UNIX == address->sa_family)
     GNUNET_NETWORK_unix_precheck ((const struct sockaddr_un *) address);
+
   {
     const int on = 1;
 
-    /* This is required here for TCP sockets, but only on UNIX */
-    if ((SOCK_STREAM == desc->type) &&
-        (0 != setsockopt (desc->fd,
-                          SOL_SOCKET,
-                          SO_REUSEADDR,
-                          &on, sizeof(on))))
+    if ( (SOCK_STREAM == desc->type) &&
+         (0 != setsockopt (desc->fd,
+                           SOL_SOCKET,
+                           SO_REUSEADDR,
+                           &on, sizeof(on))) )
       LOG_STRERROR (GNUNET_ERROR_TYPE_DEBUG,
                     "setsockopt");
   }
@@ -883,15 +883,13 @@ GNUNET_NETWORK_socket_setsockopt (struct 
GNUNET_NETWORK_Handle *fd,
                                   const void *option_value,
                                   socklen_t option_len)
 {
-  int ret;
-
-  ret = setsockopt (fd->fd,
-                    level,
-                    option_name,
-                    option_value,
-                    option_len);
-
-  return ret == 0 ? GNUNET_OK : GNUNET_SYSERR;
+  return (0 == setsockopt (fd->fd,
+                           level,
+                           option_name,
+                           option_value,
+                           option_len))
+    ? GNUNET_OK
+    : GNUNET_SYSERR;
 }
 
 

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