X-Git-Url: http://ftp.carnet.hr/pub/carnet-debian/scm?a=blobdiff_plain;f=src%2Fheaders%2Fshared.h;h=87fda42f0e1fbf6f2b26496547b8ceda7e57f748;hb=e81e4e82e5115bf99b6fbd9ebd486de325d67ed6;hp=fe2827c9390830857b27e14afb23208f10fa6e67;hpb=6ef2f786c6c8ead94841b5f93baf9f43421f08c8;p=ossec-hids.git diff --git a/src/headers/shared.h b/src/headers/shared.h index fe2827c..87fda42 100755 --- a/src/headers/shared.h +++ b/src/headers/shared.h @@ -80,11 +80,11 @@ #include #include #else +#include #include -#include #include -#include #include +#include #endif #include @@ -178,15 +178,15 @@ char *__local_name; /*** These functions will exit on error. No need to check return code ***/ /* for calloc: x = calloc(4,sizeof(char)) -> os_calloc(4,sizeof(char),x) */ -#define os_calloc(x,y,z) (z = calloc(x,y))?(void)1:ErrorExit(MEM_ERROR, ARGV0) +#define os_calloc(x,y,z) ((z = calloc(x,y)))?(void)1:ErrorExit(MEM_ERROR, ARGV0) -#define os_strdup(x,y) (y = strdup(x))?(void)1:ErrorExit(MEM_ERROR, ARGV0) +#define os_strdup(x,y) ((y = strdup(x)))?(void)1:ErrorExit(MEM_ERROR, ARGV0) -#define os_malloc(x,y) (y = malloc(x))?(void)1:ErrorExit(MEM_ERROR, ARGV0) +#define os_malloc(x,y) ((y = malloc(x)))?(void)1:ErrorExit(MEM_ERROR, ARGV0) #define os_free(x) (x)?free(x):merror("free a null") -#define os_realloc(x,y,z) (z = realloc(x,y))?(void)1:ErrorExit(MEM_ERROR, ARGV0) +#define os_realloc(x,y,z) ((z = realloc(x,y)))?(void)1:ErrorExit(MEM_ERROR, ARGV0) #define os_clearnl(x,p) if((p = strrchr(x, '\n')))*p = '\0'; @@ -225,8 +225,9 @@ char *__local_name; #include "os_regex/os_regex.h" #include "error_messages/error_messages.h" +#include "custom_output_search.h" #endif /* __SHARED_H */ - + /* EOF */