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
/
os_regex
/
examples
/
match.c
diff --git
a/src/os_regex/examples/match.c
b/src/os_regex/examples/match.c
old mode 100755
(executable)
new mode 100644
(file)
index
2579dd1
..
69afa9e
--- a/
src/os_regex/examples/match.c
+++ b/
src/os_regex/examples/match.c
@@
-6,23
+6,24
@@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
+
#include "os_regex.h"
#include "os_regex.h"
-int main(int argc,char **argv)
-{
- if(argc != 3)
- {
- printf("%s regex word\n",argv[0]);
+int main(int argc, char **argv)
+{
+ if (argc != 3) {
+ printf("%s regex word\n", argv[0]);
exit(1);
}
exit(1);
}
- printf("for MATCH: ");
- if(OS_Match2(argv[1],argv[2]))
+ printf("for MATCH: ");
+ if (OS_Match2(argv[1], argv[2])) {
printf("TRUE\n");
printf("TRUE\n");
- else
+ } else {
printf("FALSE\n");
printf("FALSE\n");
+ }
- return(0);
+ return (0);
}
}
-/* EOF */
+