diff options
Diffstat (limited to 'contrib/minizip/minizip.c')
-rw-r--r-- | contrib/minizip/minizip.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/contrib/minizip/minizip.c b/contrib/minizip/minizip.c index 4288962..2a38549 100644 --- a/contrib/minizip/minizip.c +++ b/contrib/minizip/minizip.c | |||
@@ -72,7 +72,7 @@ | |||
72 | 72 | ||
73 | #ifdef _WIN32 | 73 | #ifdef _WIN32 |
74 | uLong filetime(f, tmzip, dt) | 74 | uLong filetime(f, tmzip, dt) |
75 | char *f; /* name of file to get info on */ | 75 | const char *f; /* name of file to get info on */ |
76 | tm_zip *tmzip; /* return value: access, modific. and creation times */ | 76 | tm_zip *tmzip; /* return value: access, modific. and creation times */ |
77 | uLong *dt; /* dostime */ | 77 | uLong *dt; /* dostime */ |
78 | { | 78 | { |
@@ -94,12 +94,13 @@ uLong filetime(f, tmzip, dt) | |||
94 | return ret; | 94 | return ret; |
95 | } | 95 | } |
96 | #else | 96 | #else |
97 | #ifdef unix || __APPLE__ | 97 | #if defined(unix) || defined(__APPLE__) |
98 | uLong filetime(f, tmzip, dt) | 98 | uLong filetime(f, tmzip, dt) |
99 | char *f; /* name of file to get info on */ | 99 | const char *f; /* name of file to get info on */ |
100 | tm_zip *tmzip; /* return value: access, modific. and creation times */ | 100 | tm_zip *tmzip; /* return value: access, modific. and creation times */ |
101 | uLong *dt; /* dostime */ | 101 | uLong *dt; /* dostime */ |
102 | { | 102 | { |
103 | (void)dt; | ||
103 | int ret=0; | 104 | int ret=0; |
104 | struct stat s; /* results of stat() */ | 105 | struct stat s; /* results of stat() */ |
105 | struct tm* filedate; | 106 | struct tm* filedate; |
@@ -138,7 +139,7 @@ uLong filetime(f, tmzip, dt) | |||
138 | } | 139 | } |
139 | #else | 140 | #else |
140 | uLong filetime(f, tmzip, dt) | 141 | uLong filetime(f, tmzip, dt) |
141 | char *f; /* name of file to get info on */ | 142 | const char *f; /* name of file to get info on */ |
142 | tm_zip *tmzip; /* return value: access, modific. and creation times */ | 143 | tm_zip *tmzip; /* return value: access, modific. and creation times */ |
143 | uLong *dt; /* dostime */ | 144 | uLong *dt; /* dostime */ |
144 | { | 145 | { |
@@ -229,7 +230,7 @@ int isLargeFile(const char* filename) | |||
229 | 230 | ||
230 | if(pFile != NULL) | 231 | if(pFile != NULL) |
231 | { | 232 | { |
232 | int n = FSEEKO_FUNC(pFile, 0, SEEK_END); | 233 | FSEEKO_FUNC(pFile, 0, SEEK_END); |
233 | pos = FTELLO_FUNC(pFile); | 234 | pos = FTELLO_FUNC(pFile); |
234 | 235 | ||
235 | printf("File : %s is %lld bytes\n", filename, pos); | 236 | printf("File : %s is %lld bytes\n", filename, pos); |