X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Fmonitord%2Fcompress_log.c;h=c7d75f7f6bcd374b5ab41bd9851fdd2976b03511;hb=789cbc8e52da68eba3517b920ef22e000cf3c9fd;hp=5ebfc688b975bd4faf4c1286c5d51b295e7a49af;hpb=6ef2f786c6c8ead94841b5f93baf9f43421f08c8;p=ossec-hids.git diff --git a/src/monitord/compress_log.c b/src/monitord/compress_log.c index 5ebfc68..c7d75f7 100755 --- a/src/monitord/compress_log.c +++ b/src/monitord/compress_log.c @@ -19,7 +19,7 @@ void OS_CompressLog(char *logfile) { FILE *log; - gzFile *zlog; + gzFile zlog; char logfileGZ[OS_FLSIZE + 1]; int len, err; @@ -40,7 +40,7 @@ void OS_CompressLog(char *logfile) /* Setting the umask */ umask(0027); - + /* Creating the gzip file name */ snprintf(logfileGZ, OS_FLSIZE, "%s.gz", logfile); @@ -80,6 +80,6 @@ void OS_CompressLog(char *logfile) return; } - + /* EOF */