crc_reset(s);
else
#endif
- strm->adler = functable.adler32(0L, NULL, 0);
+ strm->adler = ADLER32_INITIAL_VALUE;
s->last_flush = -2;
zng_tr_init(s);
if (s->strstart != 0) {
put_uint32_msb(s, strm->adler);
}
- strm->adler = functable.adler32(0L, NULL, 0);
+ strm->adler = ADLER32_INITIAL_VALUE;
s->status = BUSY_STATE;
/* Compression must start with an empty pending buffer */
if (state->wrap) /* to support ill-conceived Java test suite */
strm->adler = state->wrap & 1;
state->mode = HEAD;
- state->check = functable.adler32(0L, NULL, 0);
+ state->check = ADLER32_INITIAL_VALUE;
state->last = 0;
state->havedict = 0;
state->flags = -1;
state->dmax = 1U << len;
state->flags = 0; /* indicate zlib header */
Tracev((stderr, "inflate: zlib header ok\n"));
- strm->adler = state->check = functable.adler32(0L, NULL, 0);
+ strm->adler = state->check = ADLER32_INITIAL_VALUE;
state->mode = hold & 0x200 ? DICTID : TYPE;
INITBITS();
break;
RESTORE();
return Z_NEED_DICT;
}
- strm->adler = state->check = functable.adler32(0L, NULL, 0);
+ strm->adler = state->check = ADLER32_INITIAL_VALUE;
state->mode = TYPE;
case TYPE:
/* check for correct dictionary identifier */
if (state->mode == DICT) {
- dictid = functable.adler32(0L, NULL, 0);
- dictid = functable.adler32(dictid, dictionary, dictLength);
+ dictid = functable.adler32(ADLER32_INITIAL_VALUE, dictionary, dictLength);
if (dictid != state->check)
return Z_DATA_ERROR;
}