X-Git-Url: http://ftp.carnet.hr/pub/carnet-debian/scm?a=blobdiff_plain;f=src%2Fos_regex%2Fos_regex.c;h=713b2c699748278e99c427dcc06d87006be801cb;hb=927951d1c1ad45ba9e7325f07d996154a91c911b;hp=2e89fabd9c87ab07f61c16ef4b9a7d2cee9fbf11;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a;p=ossec-hids.git diff --git a/src/os_regex/os_regex.c b/src/os_regex/os_regex.c index 2e89fab..713b2c6 100755 --- a/src/os_regex/os_regex.c +++ b/src/os_regex/os_regex.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 */ @@ -24,7 +24,7 @@ * only going to be used once. * Returns 1 on success or 0 on failure. */ -int OS_Regex(char *pattern, char *str) +int OS_Regex(const char *pattern, const char *str) { int r_code = 0; OSRegex reg; @@ -39,7 +39,7 @@ int OS_Regex(char *pattern, char *str) OSRegex_FreePattern(®); } - + return(r_code); }