diff options
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; |