[Olsr-dev] [PATCH v1 25/44] txtinfo: some more formatting

Ferry Huberts (spam-protected)
Fri Nov 27 10:43:18 CET 2015


From: Ferry Huberts <(spam-protected)>

Signed-off-by: Ferry Huberts <(spam-protected)>
---
 lib/txtinfo/src/olsrd_txtinfo.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/lib/txtinfo/src/olsrd_txtinfo.c b/lib/txtinfo/src/olsrd_txtinfo.c
index d684c78..4827926 100644
--- a/lib/txtinfo/src/olsrd_txtinfo.c
+++ b/lib/txtinfo/src/olsrd_txtinfo.c
@@ -201,7 +201,7 @@ static int plugin_ipc_init(void) {
       return 0;
     }
 #if (defined __FreeBSD__ || defined __FreeBSD_kernel__) && defined SO_NOSIGPIPE
-    if (setsockopt(ipc_socket, SOL_SOCKET, SO_NOSIGPIPE, (char *)&yes, sizeof(yes)) < 0) {
+    if (setsockopt(ipc_socket, SOL_SOCKET, SO_NOSIGPIPE, (char *) &yes, sizeof(yes)) < 0) {
       perror("SO_REUSEADDR failed");
       return 0;
     }
@@ -292,11 +292,11 @@ static void ipc_action(int fd, void *data __attribute__ ((unused)), unsigned int
 #ifdef INFO_ALLOW_LOCALHOST
       if (ntohl(pin.in4.sin_addr.s_addr) != INADDR_LOOPBACK) {
 #endif /* INFO_ALLOW_LOCALHOST */
-      olsr_printf(1, "("PLUGIN_NAME") From host(%s) not allowed!\n", addr);
-      close(ipc_connection);
-      return;
+        olsr_printf(1, "("PLUGIN_NAME") From host(%s) not allowed!\n", addr);
+        close(ipc_connection);
+        return;
 #ifdef INFO_ALLOW_LOCALHOST
-    }
+      }
 #endif /* INFO_ALLOW_LOCALHOST */
     }
   } else {
-- 
2.5.0




More information about the Olsr-dev mailing list