diff options
Diffstat (limited to 'lib/uzlib/tinfzlib.c')
| -rw-r--r-- | lib/uzlib/tinfzlib.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/uzlib/tinfzlib.c b/lib/uzlib/tinfzlib.c index 5cb8852fc..03954cefa 100644 --- a/lib/uzlib/tinfzlib.c +++ b/lib/uzlib/tinfzlib.c @@ -33,9 +33,9 @@ * any source distribution. */ -#include "tinf.h" +#include "uzlib.h" -int uzlib_zlib_parse_header(TINF_DATA *d) +int uzlib_zlib_parse_header(uzlib_uncomp_t *d) { unsigned char cmf, flg; @@ -47,19 +47,19 @@ int uzlib_zlib_parse_header(TINF_DATA *d) /* -- check format -- */ /* check checksum */ - if ((256*cmf + flg) % 31) return TINF_DATA_ERROR; + if ((256*cmf + flg) % 31) return UZLIB_DATA_ERROR; /* check method is deflate */ - if ((cmf & 0x0f) != 8) return TINF_DATA_ERROR; + if ((cmf & 0x0f) != 8) return UZLIB_DATA_ERROR; /* check window size is valid */ - if ((cmf >> 4) > 7) return TINF_DATA_ERROR; + if ((cmf >> 4) > 7) return UZLIB_DATA_ERROR; /* check there is no preset dictionary */ - if (flg & 0x20) return TINF_DATA_ERROR; + if (flg & 0x20) return UZLIB_DATA_ERROR; /* initialize for adler32 checksum */ - d->checksum_type = TINF_CHKSUM_ADLER; + d->checksum_type = UZLIB_CHKSUM_ADLER; d->checksum = 1; return cmf >> 4; |
