projects
/
ossec-hids.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
novi upstream verzije 2.8.3
[ossec-hids.git]
/
src
/
os_regex
/
os_match.c
diff --git
a/src/os_regex/os_match.c
b/src/os_regex/os_match.c
index
cd40136
..
a7a7ccf
100755
(executable)
--- a/
src/os_regex/os_match.c
+++ b/
src/os_regex/os_match.c
@@
-13,10
+13,10
@@
#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 OS_Match2(char *pattern, char *str) v0.4
*
* This function is a wrapper around the compile/execute
/** int OS_Match2(char *pattern, char *str) v0.4
*
* This function is a wrapper around the compile/execute
@@
-24,7
+24,7
@@
* only going to be used once.
* Returns 1 on success or 0 on failure.
*/
* only going to be used once.
* Returns 1 on success or 0 on failure.
*/
-int OS_Match2(char *pattern, char *str)
+int OS_Match2(const char *pattern, const char *str)
{
int r_code = 0;
OSMatch reg;
{
int r_code = 0;
OSMatch reg;
@@
-39,9
+39,8
@@
int OS_Match2(char *pattern, char *str)
OSMatch_FreePattern(®);
}
OSMatch_FreePattern(®);
}
-
+
return(r_code);
}
return(r_code);
}
-
/* EOF */
/* EOF */