From 12b6895f7b682255f60dcd77dd26a75da63a4697 Mon Sep 17 00:00:00 2001 From: Jared Mulconry Date: Fri, 29 Sep 2017 01:29:11 +1000 Subject: [PATCH] Replaced unsigned long for the crc table to z_crc_t, to match what is returned by get-crc_table --- contrib/unzip/crypt.h | 2 +- contrib/unzip/unzip.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/unzip/crypt.h b/contrib/unzip/crypt.h index 622f4bc2e..5fd3dcd6c 100644 --- a/contrib/unzip/crypt.h +++ b/contrib/unzip/crypt.h @@ -45,7 +45,7 @@ static int decrypt_byte(unsigned long* pkeys, const unsigned long* pcrc_32_tab) /*********************************************************************** * Update the encryption keys with the next byte of plain text */ -static int update_keys(unsigned long* pkeys,const unsigned long* pcrc_32_tab,int c) +static int update_keys(unsigned long* pkeys,const z_crc_t* pcrc_32_tab,int c) { (*(pkeys+0)) = CRC32((*(pkeys+0)), c); (*(pkeys+1)) += (*(pkeys+0)) & 0xff; diff --git a/contrib/unzip/unzip.c b/contrib/unzip/unzip.c index 9ad4766d8..e9ad1ff99 100644 --- a/contrib/unzip/unzip.c +++ b/contrib/unzip/unzip.c @@ -147,7 +147,7 @@ typedef struct int encrypted; # ifndef NOUNCRYPT unsigned long keys[3]; /* keys defining the pseudo-random sequence */ - const unsigned long* pcrc_32_tab; + const z_crc_t* pcrc_32_tab; # endif } unz_s;