aboutsummaryrefslogtreecommitdiff
path: root/contrib/minizip/minizip.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/minizip/minizip.c')
-rw-r--r--contrib/minizip/minizip.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/contrib/minizip/minizip.c b/contrib/minizip/minizip.c
index 4d93d22..66e88d0 100644
--- a/contrib/minizip/minizip.c
+++ b/contrib/minizip/minizip.c
@@ -41,6 +41,9 @@
41 41
42 42
43 43
44#ifndef _CRT_SECURE_NO_WARNINGS
45# define _CRT_SECURE_NO_WARNINGS
46#endif
44#include <stdio.h> 47#include <stdio.h>
45#include <stdlib.h> 48#include <stdlib.h>
46#include <string.h> 49#include <string.h>
@@ -74,6 +77,7 @@
74/* f: name of file to get info on, tmzip: return value: access, 77/* f: name of file to get info on, tmzip: return value: access,
75 modification and creation times, dt: dostime */ 78 modification and creation times, dt: dostime */
76static int filetime(const char *f, tm_zip *tmzip, uLong *dt) { 79static int filetime(const char *f, tm_zip *tmzip, uLong *dt) {
80 (void)tmzip;
77 int ret = 0; 81 int ret = 0;
78 { 82 {
79 FILETIME ftLocal; 83 FILETIME ftLocal;
@@ -190,7 +194,7 @@ static int getFileCrc(const char* filenameinzip, void* buf, unsigned long size_b
190 do 194 do
191 { 195 {
192 err = ZIP_OK; 196 err = ZIP_OK;
193 size_read = fread(buf,1,size_buf,fin); 197 size_read = (unsigned long)fread(buf,1,size_buf,fin);
194 if (size_read < size_buf) 198 if (size_read < size_buf)
195 if (feof(fin)==0) 199 if (feof(fin)==0)
196 { 200 {
@@ -242,7 +246,7 @@ int main(int argc, char *argv[]) {
242 char filename_try[MAXFILENAME+16]; 246 char filename_try[MAXFILENAME+16];
243 int zipok; 247 int zipok;
244 int err=0; 248 int err=0;
245 size_t size_buf=0; 249 unsigned long size_buf=0;
246 void* buf=NULL; 250 void* buf=NULL;
247 const char* password=NULL; 251 const char* password=NULL;
248 252
@@ -304,7 +308,7 @@ int main(int argc, char *argv[]) {
304 } 308 }
305 else 309 else
306 { 310 {
307 int i,len; 311 int len;
308 int dot_found=0; 312 int dot_found=0;
309 313
310 zipok = 1 ; 314 zipok = 1 ;