Imported Upstream version 2.7
[ossec-hids.git] / src / os_zlib / os_zlib.c
index 21b1784..ad208fb 100755 (executable)
@@ -1,4 +1,5 @@
-/* @(#) $Id$ */
+/* @(#) $Id: ./src/os_zlib/os_zlib.c, 2011/09/08 dcid Exp $
+ */
 
 /* Copyright (C) 2009 Trend Micro Inc.
  * All rights reserved.
@@ -8,7 +9,7 @@
  * License (version 2) as published by the FSF - Free Software
  * Foundation
  */
-       
+
 #include "shared.h"
 #include "os_zlib.h"
 
 int os_compress(char *src, char *dst, int src_size, int dst_size)
 {
     unsigned long int zl_dst = dst_size;
-    
+
     /* We make sure to do not allow long sizes */
-    if(compress2((unsigned char *)dst, 
-                 &zl_dst, 
+    if(compress2((unsigned char *)dst,
+                 &zl_dst,
                  (unsigned char *)src,
                  (unsigned long int)src_size, 9) == Z_OK)
     {
@@ -35,10 +36,10 @@ int os_compress(char *src, char *dst, int src_size, int dst_size)
 int os_uncompress(char *src, char *dst, int src_size, int dst_size)
 {
     unsigned long int zl_dst = dst_size;
-    
-    if(uncompress((unsigned char *)dst, 
+
+    if(uncompress((unsigned char *)dst,
                   &zl_dst,
-                  (unsigned char *)src, 
+                  (unsigned char *)src,
                   (unsigned long int)src_size) == Z_OK)
     {
         dst[zl_dst] = '\0';