X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Fos_regex%2Fos_match.c;h=a7a7ccf5931493c9f235a605d5e032c7e033bb44;hb=927951d1c1ad45ba9e7325f07d996154a91c911b;hp=4de0e7548687cff3da077583068122eb76654a3c;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a;p=ossec-hids.git diff --git a/src/os_regex/os_match.c b/src/os_regex/os_match.c index 4de0e75..a7a7ccf 100755 --- a/src/os_regex/os_match.c +++ b/src/os_regex/os_match.c @@ -5,7 +5,7 @@ * * This program is a free software; you can redistribute it * and/or modify it under the terms of the GNU General Public - * License (version 3) as published by the FSF - Free Software + * License (version 2) as published by the FSF - Free Software * Foundation */ @@ -13,10 +13,10 @@ #include #include #include - #include "os_regex.h" + /** 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. */ -int OS_Match2(char *pattern, char *str) +int OS_Match2(const char *pattern, const char *str) { int r_code = 0; OSMatch reg; @@ -39,9 +39,8 @@ int OS_Match2(char *pattern, char *str) OSMatch_FreePattern(®); } - + return(r_code); } - /* EOF */