Merge pull request #989 from timostrunk/zip_warning_fixes

size_t to ssize_t because otherwise the errorvalue would be wrong
This commit is contained in:
Twinaphex 2014-09-12 22:40:34 +02:00
commit f28edd4ea8

View File

@ -33,7 +33,7 @@
*/
int read_zip_file(const char * archive_path, const char *relative_path, void **buf)
{
size_t bytes_read = -1;
ssize_t bytes_read = -1;
bool finished_reading = false;
unzFile *zipfile = (unzFile*)unzOpen( archive_path );
if ( ! zipfile )
@ -144,7 +144,7 @@ struct string_list *compressed_zip_file_list_new(const char *path,
ext_list = string_split(ext, "|");
size_t bytes_read = -1;
ssize_t bytes_read = -1;
bool finished_reading = false;
unzFile *zipfile = (unzFile*)unzOpen( path );