aboutsummaryrefslogtreecommitdiff
path: root/archival/libunarchive/decompress_unzip.c
diff options
context:
space:
mode:
Diffstat (limited to 'archival/libunarchive/decompress_unzip.c')
-rw-r--r--archival/libunarchive/decompress_unzip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/archival/libunarchive/decompress_unzip.c b/archival/libunarchive/decompress_unzip.c
index a764fbc98..9036fabf2 100644
--- a/archival/libunarchive/decompress_unzip.c
+++ b/archival/libunarchive/decompress_unzip.c
@@ -922,7 +922,7 @@ static int inflate_block(STATE_PARAM smallint *e)
922/* Two callsites, both in inflate_get_next_window */ 922/* Two callsites, both in inflate_get_next_window */
923static void calculate_gunzip_crc(STATE_PARAM_ONLY) 923static void calculate_gunzip_crc(STATE_PARAM_ONLY)
924{ 924{
925 int n; 925 unsigned n;
926 for (n = 0; n < gunzip_outbuf_count; n++) { 926 for (n = 0; n < gunzip_outbuf_count; n++) {
927 gunzip_crc = gunzip_crc_table[((int) gunzip_crc ^ (gunzip_window[n])) & 0xff] ^ (gunzip_crc >> 8); 927 gunzip_crc = gunzip_crc_table[((int) gunzip_crc ^ (gunzip_window[n])) & 0xff] ^ (gunzip_crc >> 8);
928 } 928 }
@@ -1003,7 +1003,7 @@ inflate_unzip_internal(STATE_PARAM int in, int out)
1003 while (1) { 1003 while (1) {
1004 int r = inflate_get_next_window(PASS_STATE_ONLY); 1004 int r = inflate_get_next_window(PASS_STATE_ONLY);
1005 nwrote = full_write(out, gunzip_window, gunzip_outbuf_count); 1005 nwrote = full_write(out, gunzip_window, gunzip_outbuf_count);
1006 if (nwrote != gunzip_outbuf_count) { 1006 if (nwrote != (ssize_t)gunzip_outbuf_count) {
1007 bb_perror_msg("write"); 1007 bb_perror_msg("write");
1008 n = -1; 1008 n = -1;
1009 goto ret; 1009 goto ret;
@@ -1064,7 +1064,7 @@ static int top_up(STATE_PARAM unsigned n)
1064{ 1064{
1065 int count = bytebuffer_size - bytebuffer_offset; 1065 int count = bytebuffer_size - bytebuffer_offset;
1066 1066
1067 if (count < n) { 1067 if (count < (int)n) {
1068 memmove(bytebuffer, &bytebuffer[bytebuffer_offset], count); 1068 memmove(bytebuffer, &bytebuffer[bytebuffer_offset], count);
1069 bytebuffer_offset = 0; 1069 bytebuffer_offset = 0;
1070 bytebuffer_size = full_read(gunzip_src_fd, &bytebuffer[count], bytebuffer_max - count); 1070 bytebuffer_size = full_read(gunzip_src_fd, &bytebuffer[count], bytebuffer_max - count);