summaryrefslogtreecommitdiff
path: root/inffast.c
diff options
context:
space:
mode:
Diffstat (limited to 'inffast.c')
-rw-r--r--inffast.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/inffast.c b/inffast.c
index 209c0ee..64c6289 100644
--- a/inffast.c
+++ b/inffast.c
@@ -1,5 +1,5 @@
1/* inffast.c -- process literals and length/distance pairs fast 1/* inffast.c -- process literals and length/distance pairs fast
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
@@ -29,8 +29,7 @@ struct inflate_codes_state {int dummy;}; /* for buggy compilers */
29 29
30int inflate_fast(bl, bd, tl, td, s, z) 30int inflate_fast(bl, bd, tl, td, s, z)
31uInt bl, bd; 31uInt bl, bd;
32inflate_huft *tl; 32inflate_huft *tl, *td;
33inflate_huft *td; /* need separate declaration for Borland C++ */
34inflate_blocks_statef *s; 33inflate_blocks_statef *s;
35z_stream *z; 34z_stream *z;
36{ 35{
@@ -123,7 +122,7 @@ z_stream *z;
123 e = (t = t->next + ((uInt)b & inflate_mask[e]))->exop; 122 e = (t = t->next + ((uInt)b & inflate_mask[e]))->exop;
124 else 123 else
125 { 124 {
126 z->msg = (char*)"invalid distance code"; 125 z->msg = "invalid distance code";
127 UNGRAB 126 UNGRAB
128 UPDATE 127 UPDATE
129 return Z_DATA_ERROR; 128 return Z_DATA_ERROR;
@@ -153,7 +152,7 @@ z_stream *z;
153 } 152 }
154 else 153 else
155 { 154 {
156 z->msg = (char*)"invalid literal/length code"; 155 z->msg = "invalid literal/length code";
157 UNGRAB 156 UNGRAB
158 UPDATE 157 UPDATE
159 return Z_DATA_ERROR; 158 return Z_DATA_ERROR;