From 8a2acbffc86012de3523ecf91db2c4ea1b1c4ea2 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Fri, 9 Sep 2011 23:13:27 -0700 Subject: zlib 1.0-pre --- infcodes.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'infcodes.c') diff --git a/infcodes.c b/infcodes.c index 6314e80..a5fa8cc 100644 --- a/infcodes.c +++ b/infcodes.c @@ -1,5 +1,5 @@ /* infcodes.c -- process literals and length/distance pairs - * Copyright (C) 1995-1996 Mark Adler + * Copyright (C) 1995 Mark Adler * For conditions of distribution and use, see copyright notice in zlib.h */ @@ -58,8 +58,7 @@ struct inflate_codes_state { inflate_codes_statef *inflate_codes_new(bl, bd, tl, td, z) uInt bl, bd; -inflate_huft *tl; -inflate_huft *td; /* need separate declaration for Borland C++ */ +inflate_huft *tl, *td; z_stream *z; { inflate_codes_statef *c; @@ -153,7 +152,7 @@ int r; break; } c->mode = BADCODE; /* invalid code */ - z->msg = (char*)"invalid literal/length code"; + z->msg = "invalid literal/length code"; r = Z_DATA_ERROR; LEAVE case LENEXT: /* i: getting length extra (have base) */ @@ -185,7 +184,7 @@ int r; break; } c->mode = BADCODE; /* invalid code */ - z->msg = (char*)"invalid distance code"; + z->msg = "invalid distance code"; r = Z_DATA_ERROR; LEAVE case DISTEXT: /* i: getting distance extra */ -- cgit v1.2.3-55-g6feb