summaryrefslogtreecommitdiff
path: root/infcodes.c
diff options
context:
space:
mode:
Diffstat (limited to 'infcodes.c')
-rw-r--r--infcodes.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/infcodes.c b/infcodes.c
index 6314e80..a5fa8cc 100644
--- a/infcodes.c
+++ b/infcodes.c
@@ -1,5 +1,5 @@
1/* infcodes.c -- process literals and length/distance pairs 1/* infcodes.c -- process literals and length/distance pairs
2 * Copyright (C) 1995-1996 Mark Adler 2 * Copyright (C) 1995 Mark Adler
3 * For conditions of distribution and use, see copyright notice in zlib.h 3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */ 4 */
5 5
@@ -58,8 +58,7 @@ struct inflate_codes_state {
58 58
59inflate_codes_statef *inflate_codes_new(bl, bd, tl, td, z) 59inflate_codes_statef *inflate_codes_new(bl, bd, tl, td, z)
60uInt bl, bd; 60uInt bl, bd;
61inflate_huft *tl; 61inflate_huft *tl, *td;
62inflate_huft *td; /* need separate declaration for Borland C++ */
63z_stream *z; 62z_stream *z;
64{ 63{
65 inflate_codes_statef *c; 64 inflate_codes_statef *c;
@@ -153,7 +152,7 @@ int r;
153 break; 152 break;
154 } 153 }
155 c->mode = BADCODE; /* invalid code */ 154 c->mode = BADCODE; /* invalid code */
156 z->msg = (char*)"invalid literal/length code"; 155 z->msg = "invalid literal/length code";
157 r = Z_DATA_ERROR; 156 r = Z_DATA_ERROR;
158 LEAVE 157 LEAVE
159 case LENEXT: /* i: getting length extra (have base) */ 158 case LENEXT: /* i: getting length extra (have base) */
@@ -185,7 +184,7 @@ int r;
185 break; 184 break;
186 } 185 }
187 c->mode = BADCODE; /* invalid code */ 186 c->mode = BADCODE; /* invalid code */
188 z->msg = (char*)"invalid distance code"; 187 z->msg = "invalid distance code";
189 r = Z_DATA_ERROR; 188 r = Z_DATA_ERROR;
190 LEAVE 189 LEAVE
191 case DISTEXT: /* i: getting distance extra */ 190 case DISTEXT: /* i: getting distance extra */