jsoninfo: fix some indents
authorFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 30 Nov 2015 20:33:00 +0000 (21:33 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 2 Dec 2015 17:41:13 +0000 (18:41 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/jsoninfo/src/olsrd_jsoninfo.c

index 6064674..d4b3878 100644 (file)
@@ -343,11 +343,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 {