assert(ctx->dictionary_ != NULL && "Stream has no dictionary");
// Load it
- err = inflateSetDictionary(
- &(ctx->strm_),
- ctx->dictionary_,
- ctx->dictionary_len_
- );
+ err = inflateSetDictionary(&ctx->strm_,
+ ctx->dictionary_,
+ ctx->dictionary_len_);
assert(err == Z_OK && "Failed to set dictionary");
// And try to decode again
- err = inflate(&(ctx->strm_), ctx->flush_);
+ err = inflate(&ctx->strm_, ctx->flush_);
}
break;
default:
case DEFLATE:
case GZIP:
case DEFLATERAW:
- err = deflateInit2(&(ctx->strm_),
+ err = deflateInit2(&ctx->strm_,
ctx->level_,
Z_DEFLATED,
ctx->windowBits_,
case GUNZIP:
case INFLATERAW:
case UNZIP:
- err = inflateInit2(&(ctx->strm_), ctx->windowBits_);
+ err = inflateInit2(&ctx->strm_, ctx->windowBits_);
break;
default:
assert(0 && "wtf?");
switch (mode) {
case DEFLATE:
case DEFLATERAW:
- err = deflateSetDictionary(
- &(ctx->strm_),
- ctx->dictionary_,
- dictionary_len
- );
+ err = deflateSetDictionary(&ctx->strm_,
+ ctx->dictionary_,
+ dictionary_len);
break;
default:
break;