summaryrefslogtreecommitdiff
path: root/src/minizip/zip.c
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2014-06-10 20:27:13 +0000
committerXavier Roche <xroche@users.noreply.github.com>2014-06-10 20:27:13 +0000
commit713b83f7b406858269863d92865b715470d6335c (patch)
tree79eb2733939d29388f0776f68da4b053427a61c9 /src/minizip/zip.c
parent82e61ae9d68114bdcd6fafdb8bf823ae9ce69bef (diff)
Added the following compiler flags:
* -Wcast-qual * -Wmissing-parameter-type * -Wold-style-definition
Diffstat (limited to 'src/minizip/zip.c')
-rw-r--r--src/minizip/zip.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/minizip/zip.c b/src/minizip/zip.c
index b0d83e2..52d7e72 100644
--- a/src/minizip/zip.c
+++ b/src/minizip/zip.c
@@ -33,6 +33,7 @@
# include <stddef.h>
# include <string.h>
# include <stdlib.h>
+# include <stdint.h>
#endif
#ifdef NO_ERRNO_H
extern int errno;
@@ -238,7 +239,7 @@ local int add_data_in_datablock(linkedlist_data* ll, const void* buf, uLong len)
}
ldi = ll->last_block;
- from_copy = (unsigned char*)buf;
+ from_copy = (const unsigned char*)buf;
while (len>0)
{
@@ -1450,7 +1451,7 @@ extern int ZEXPORT zipWriteInFileInZip (zipFile file,const void* buf,unsigned in
else
#endif
{
- zi->ci.stream.next_in = (Bytef*)buf;
+ zi->ci.stream.next_in = (void*) (uintptr_t) buf;
zi->ci.stream.avail_in = len;
while ((err==ZIP_OK) && (zi->ci.stream.avail_in>0))