Fix C89 build
This commit is contained in:
parent
54db0fe515
commit
a978b939ff
|
@ -448,12 +448,12 @@ bool file_archive_perform_mode(const char *path, const char *valid_exts,
|
|||
const uint8_t *cdata, unsigned cmode, uint32_t csize, uint32_t size,
|
||||
uint32_t crc32, struct archive_extract_userdata *userdata)
|
||||
{
|
||||
file_archive_file_handle_t handle;
|
||||
int ret;
|
||||
|
||||
if (!userdata->transfer || !userdata->transfer->backend)
|
||||
return false;
|
||||
|
||||
int ret = 0;
|
||||
file_archive_file_handle_t handle;
|
||||
|
||||
handle.data = NULL;
|
||||
handle.real_checksum = 0;
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
enum file_archive_compression_mode
|
||||
{
|
||||
ZIP_MODE_STORED = 0,
|
||||
ZIP_MODE_DEFLATED = 8,
|
||||
ZIP_MODE_DEFLATED = 8
|
||||
};
|
||||
|
||||
typedef struct
|
||||
|
@ -425,13 +425,12 @@ static int zip_parse_file_iterate_step_internal(
|
|||
uint32_t *checksum, unsigned *payback)
|
||||
{
|
||||
uint8_t *entry = zip_context->directory_entry;
|
||||
uint32_t offset;
|
||||
uint32_t namelength, extralength, commentlength;
|
||||
uint32_t signature, namelength, extralength, commentlength, offset;
|
||||
|
||||
if (entry < zip_context->directory || entry >= zip_context->directory_end)
|
||||
return 0;
|
||||
|
||||
uint32_t signature = read_le(zip_context->directory_entry + 0, 4);
|
||||
signature = read_le(zip_context->directory_entry + 0, 4);
|
||||
|
||||
if (signature != CENTRAL_FILE_HEADER_SIGNATURE)
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue