diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2007-09-30 20:56:49 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:53:57 -0400 |
commit | 8336793baf962163c9fab5a3f39614295fdbab27 (patch) | |
tree | 6940426f8880928444e227d43085ca3d2fbfba80 /lib/zlib_inflate/inffast.c | |
parent | b3448b0bde5f1a858397fe791f76632e978a1dc8 (diff) |
[ZLIB]: Move bnx2 driver gzip unpacker into zlib.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Acked-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/zlib_inflate/inffast.c')
-rw-r--r-- | lib/zlib_inflate/inffast.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/zlib_inflate/inffast.c b/lib/zlib_inflate/inffast.c index d84560c076d8..8550b0c05d00 100644 --- a/lib/zlib_inflate/inffast.c +++ b/lib/zlib_inflate/inffast.c | |||
@@ -69,22 +69,22 @@ | |||
69 | void inflate_fast(z_streamp strm, unsigned start) | 69 | void inflate_fast(z_streamp strm, unsigned start) |
70 | { | 70 | { |
71 | struct inflate_state *state; | 71 | struct inflate_state *state; |
72 | unsigned char *in; /* local strm->next_in */ | 72 | const unsigned char *in; /* local strm->next_in */ |
73 | unsigned char *last; /* while in < last, enough input available */ | 73 | const unsigned char *last; /* while in < last, enough input available */ |
74 | unsigned char *out; /* local strm->next_out */ | 74 | unsigned char *out; /* local strm->next_out */ |
75 | unsigned char *beg; /* inflate()'s initial strm->next_out */ | 75 | unsigned char *beg; /* inflate()'s initial strm->next_out */ |
76 | unsigned char *end; /* while out < end, enough space available */ | 76 | unsigned char *end; /* while out < end, enough space available */ |
77 | #ifdef INFLATE_STRICT | 77 | #ifdef INFLATE_STRICT |
78 | unsigned dmax; /* maximum distance from zlib header */ | 78 | unsigned dmax; /* maximum distance from zlib header */ |
79 | #endif | 79 | #endif |
80 | unsigned wsize; /* window size or zero if not using window */ | 80 | unsigned wsize; /* window size or zero if not using window */ |
81 | unsigned whave; /* valid bytes in the window */ | 81 | unsigned whave; /* valid bytes in the window */ |
82 | unsigned write; /* window write index */ | 82 | unsigned write; /* window write index */ |
83 | unsigned char *window; /* allocated sliding window, if wsize != 0 */ | 83 | unsigned char *window; /* allocated sliding window, if wsize != 0 */ |
84 | unsigned long hold; /* local strm->hold */ | 84 | unsigned long hold; /* local strm->hold */ |
85 | unsigned bits; /* local strm->bits */ | 85 | unsigned bits; /* local strm->bits */ |
86 | code const *lcode; /* local strm->lencode */ | 86 | code const *lcode; /* local strm->lencode */ |
87 | code const *dcode; /* local strm->distcode */ | 87 | code const *dcode; /* local strm->distcode */ |
88 | unsigned lmask; /* mask for first level of length codes */ | 88 | unsigned lmask; /* mask for first level of length codes */ |
89 | unsigned dmask; /* mask for first level of distance codes */ | 89 | unsigned dmask; /* mask for first level of distance codes */ |
90 | code this; /* retrieved table entry */ | 90 | code this; /* retrieved table entry */ |
@@ -92,7 +92,7 @@ void inflate_fast(z_streamp strm, unsigned start) | |||
92 | /* window position, window bytes to copy */ | 92 | /* window position, window bytes to copy */ |
93 | unsigned len; /* match length, unused bytes */ | 93 | unsigned len; /* match length, unused bytes */ |
94 | unsigned dist; /* match distance */ | 94 | unsigned dist; /* match distance */ |
95 | unsigned char *from; /* where to copy match from */ | 95 | unsigned char *from; /* where to copy match from */ |
96 | 96 | ||
97 | /* copy state to local variables */ | 97 | /* copy state to local variables */ |
98 | state = (struct inflate_state *)strm->state; | 98 | state = (struct inflate_state *)strm->state; |