projects
/
ossec-hids.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new upstream release (3.3.0); modify package compatibility for Stretch
[ossec-hids.git]
/
src
/
shared
/
tests
/
ip_test.c
diff --git
a/src/shared/tests/ip_test.c
b/src/shared/tests/ip_test.c
old mode 100755
(executable)
new mode 100644
(file)
index
685905a
..
ff79645
--- a/
src/shared/tests/ip_test.c
+++ b/
src/shared/tests/ip_test.c
@@
-1,5
+1,6
@@
#include <stdio.h>
#include <string.h>
#include <stdio.h>
#include <string.h>
+
#include "validate_op.h"
#include "validate_op.h"
@@
-7,20
+8,18
@@
int main(int argc, char **argv)
{
os_ip myip;
{
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");
}
printf("Invalid ip\n");
}
- if(OS_IPFound(argv[2], &myip))
- {
+ if (OS_IPFound(argv[2], &myip)) {
printf("IP MATCHED!\n");
}
printf("IP MATCHED!\n");
}
- return(0);
-}
+ return (0);
+}
-/* EOF */