Blob Blame Raw
From e0ac9d5d8e843c0a14f22da0ba1922ae18bccbb9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <besser82@fedoraproject.org>
Date: Sun, 9 Jun 2019 21:07:33 +0200
Subject: [PATCH 05/29] util/zlib/deflater: Fix several compiler warnings.

---
 util/zlib/deflater.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/util/zlib/deflater.c b/util/zlib/deflater.c
index 32d01a36..7e13600a 100644
--- a/util/zlib/deflater.c
+++ b/util/zlib/deflater.c
@@ -16,8 +16,8 @@
 int main(int argc, char* argv[])
 {
         FILE* fp;
-        char* inbuf;
-        char* outbuf;
+        unsigned char* inbuf;
+        unsigned char* outbuf;
         size_t inlen;
         size_t outlen;
         z_stream stream;
@@ -84,7 +84,7 @@ int main(int argc, char* argv[])
         }
 
         /* display summary */
-        printf("Compressed %s (%d bytes) to %s (%d bytes)\n",
+        printf("Compressed %s (%zu bytes) to %s (%zu bytes)\n",
                 argv[1], inlen, argv[2], outlen);
         return 0;
 }
-- 
2.21.0