diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2014-06-11 18:59:42 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2014-06-11 18:59:42 +0000 |
commit | 1e87dc455f86fe01da311fa24b52a5f177cc8c83 (patch) | |
tree | bc4ca40a0d5647230a17d637c0f77b4751152dd4 /src/minizip/zip.c | |
parent | c0a31f2656d1746bce1cc242b6f65c1191a1f529 (diff) |
Fixed zlib warning (build zlib with -DZLIB_CONST)
Diffstat (limited to 'src/minizip/zip.c')
-rw-r--r-- | src/minizip/zip.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/minizip/zip.c b/src/minizip/zip.c index 52d7e72..cd525d2 100644 --- a/src/minizip/zip.c +++ b/src/minizip/zip.c @@ -33,7 +33,6 @@ # include <stddef.h> # include <string.h> # include <stdlib.h> -# include <stdint.h> #endif #ifdef NO_ERRNO_H extern int errno; @@ -1417,7 +1416,7 @@ extern int ZEXPORT zipWriteInFileInZip (zipFile file,const void* buf,unsigned in #ifdef HAVE_BZIP2 if(zi->ci.method == Z_BZIP2ED && (!zi->ci.raw)) { - zi->ci.bstream.next_in = (void*)buf; + zi->ci.bstream.next_in = buf; zi->ci.bstream.avail_in = len; err = BZ_RUN_OK; @@ -1451,7 +1450,7 @@ extern int ZEXPORT zipWriteInFileInZip (zipFile file,const void* buf,unsigned in else #endif { - zi->ci.stream.next_in = (void*) (uintptr_t) buf; + zi->ci.stream.next_in = buf; zi->ci.stream.avail_in = len; while ((err==ZIP_OK) && (zi->ci.stream.avail_in>0)) |