diff options
author | nate <nate@FreeBSD.org> | 1993-10-14 00:33:38 +0000 |
---|---|---|
committer | nate <nate@FreeBSD.org> | 1993-10-14 00:33:38 +0000 |
commit | eb837699da243caa78b6b6ddf8065c8f6eb8a2e8 (patch) | |
tree | 4fbeb313da94b4852b82e5b0448d45f2e7ae41e9 /gnu/usr.bin/gzip/unpack.c | |
parent | f2586b2d69a4cd1077f15d406ee9c5e345ac3b8d (diff) | |
download | FreeBSD-src-eb837699da243caa78b6b6ddf8065c8f6eb8a2e8.zip FreeBSD-src-eb837699da243caa78b6b6ddf8065c8f6eb8a2e8.tar.gz |
Updated gzip from version 1.2.2 to 1.2.4 due to popular demand
Diffstat (limited to 'gnu/usr.bin/gzip/unpack.c')
-rw-r--r-- | gnu/usr.bin/gzip/unpack.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gnu/usr.bin/gzip/unpack.c b/gnu/usr.bin/gzip/unpack.c index 789cbc0..a00fdae 100644 --- a/gnu/usr.bin/gzip/unpack.c +++ b/gnu/usr.bin/gzip/unpack.c @@ -4,7 +4,7 @@ * terms of the GNU General Public License, see the file COPYING. */ -#ifndef lint +#ifdef RCSID static char rcsid[] = "$Id: unpack.c,v 1.4 1993/06/11 19:25:36 jloup Exp $"; #endif @@ -57,7 +57,7 @@ local int peek_bits; /* Number of peek bits currently used */ * codes encountered in the input stream are short codes (by construction). * So for most codes a single lookup will be necessary. */ -#if 1<<MAX_PEEK > OUTBUFSIZ +#if (1<<MAX_PEEK) > OUTBUFSIZ error cannot overlay prefix_len and outbuf #endif @@ -219,7 +219,7 @@ int unpack(in, out) do { len++, mask = (mask<<1)+1; look_bits(peek, len, mask); - } while (peek < parents[len]); + } while (peek < (unsigned)parents[len]); /* loop as long as peek is a parent node */ } /* At this point, peek is the next complete code, of len bits */ @@ -232,7 +232,7 @@ int unpack(in, out) flush_window(); Trace((stderr, "bytes_out %ld\n", bytes_out)); - if (orig_len != bytes_out) { + if (orig_len != (ulg)bytes_out) { error("invalid compressed data--length error"); } return OK; |