diff options
author | des <des@FreeBSD.org> | 2006-03-23 14:02:36 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2006-03-23 14:02:36 +0000 |
commit | caf24dd70915cb95c94e18562674f4dec158dd8c (patch) | |
tree | 37a9206839ae2f1e4ec902b11c4733383a3c4930 /lib/libz/infback.c | |
parent | dcdd7970c32e380f850172d84335e45a41b37de8 (diff) | |
download | FreeBSD-src-caf24dd70915cb95c94e18562674f4dec158dd8c.zip FreeBSD-src-caf24dd70915cb95c94e18562674f4dec158dd8c.tar.gz |
Vendor import of ZLib 1.2.3.
Diffstat (limited to 'lib/libz/infback.c')
-rw-r--r-- | lib/libz/infback.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/libz/infback.c b/lib/libz/infback.c index 262f97c7..455dbc9 100644 --- a/lib/libz/infback.c +++ b/lib/libz/infback.c @@ -1,5 +1,5 @@ /* infback.c -- inflate using a call-back interface - * Copyright (C) 1995-2003 Mark Adler + * Copyright (C) 1995-2005 Mark Adler * For conditions of distribution and use, see copyright notice in zlib.h */ @@ -26,7 +26,7 @@ local void fixedtables OF((struct inflate_state FAR *state)); window and output buffer that is 2**windowBits bytes. */ int ZEXPORT inflateBackInit_(strm, windowBits, window, version, stream_size) -z_stream FAR *strm; +z_streamp strm; int windowBits; unsigned char FAR *window; const char *version; @@ -50,7 +50,8 @@ int stream_size; sizeof(struct inflate_state)); if (state == Z_NULL) return Z_MEM_ERROR; Tracev((stderr, "inflate: allocated\n")); - strm->state = (voidpf)state; + strm->state = (struct internal_state FAR *)state; + state->dmax = 32768U; state->wbits = windowBits; state->wsize = 1U << windowBits; state->window = window; @@ -238,7 +239,7 @@ struct inflate_state FAR *state; are not correct, i.e. strm is Z_NULL or the state was not initialized. */ int ZEXPORT inflateBack(strm, in, in_desc, out, out_desc) -z_stream FAR *strm; +z_streamp strm; in_func in; void FAR *in_desc; out_func out; @@ -611,7 +612,7 @@ void FAR *out_desc; } int ZEXPORT inflateBackEnd(strm) -z_stream FAR *strm; +z_streamp strm; { if (strm == Z_NULL || strm->state == Z_NULL || strm->zfree == (free_func)0) return Z_STREAM_ERROR; |