new upstream release (3.3.0); modify package compatibility for Stretch
[ossec-hids.git] / src / shared / tests / ip_test.c
old mode 100755 (executable)
new mode 100644 (file)
index 685905a..ff79645
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <string.h>
+
 #include "validate_op.h"
 
 
@@ -7,20 +8,18 @@ int main(int argc, char **argv)
 {
     os_ip myip;
 
-    if(!argv[1])
-        return(1);
+    if (!argv[1]) {
+        return (1);
+    }
 
-    if(!OS_IsValidIP(argv[1], &myip))
-    {
+    if (!OS_IsValidIP(argv[1], &myip)) {
         printf("Invalid ip\n");
     }
 
-    if(OS_IPFound(argv[2], &myip))
-    {
+    if (OS_IPFound(argv[2], &myip)) {
         printf("IP MATCHED!\n");
     }
-    return(0);
-}
 
+    return (0);
+}
 
-/* EOF */