X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;ds=sidebyside;f=ultrix%2Fppp-deflate.c;h=018a59bb6c8683446b56a4da647ac88dd0dd3ca4;hb=c5c068f205998fb271502bc125f4125a24ecb697;hp=d13dbb949063ed2eb80f17b5b2518d90f539b798;hpb=f291d105e6c976934264e9c72acf1415e2a5e1c7;p=ppp.git diff --git a/ultrix/ppp-deflate.c b/ultrix/ppp-deflate.c index d13dbb9..018a59b 100644 --- a/ultrix/ppp-deflate.c +++ b/ultrix/ppp-deflate.c @@ -1,4 +1,4 @@ -/* $Id: ppp-deflate.c,v 1.2 1996/09/26 06:19:18 paulus Exp $ */ +/* $Id: ppp-deflate.c,v 1.4 1997/11/27 06:06:33 paulus Exp $ */ /* * ppp_deflate.c - interface the zlib procedures for Deflate compression @@ -59,7 +59,7 @@ struct deflate_state { #define DEFLATE_OVHD 2 /* Deflate overhead/packet */ static void *zalloc __P((void *, u_int items, u_int size)); -static void zfree __P((void *, void *ptr, u_int nb)); +static void zfree __P((void *, void *ptr)); static void *z_comp_alloc __P((u_char *options, int opt_len)); static void *z_decomp_alloc __P((u_char *options, int opt_len)); static void z_comp_free __P((void *state)); @@ -121,10 +121,9 @@ zalloc(notused, items, size) } void -zfree(notused, ptr, nbytes) +zfree(notused, ptr) void *notused; void *ptr; - u_int nbytes; { KM_FREE(ptr, KM_DEVBUF); } @@ -159,7 +158,7 @@ z_comp_alloc(options, opt_len) state->strm.zalloc = (alloc_func) zalloc; state->strm.zfree = (free_func) zfree; if (deflateInit2(&state->strm, Z_DEFAULT_COMPRESSION, DEFLATE_METHOD_VAL, - -w_size, 8, Z_DEFAULT_STRATEGY, DEFLATE_OVHD+2) != Z_OK) { + -w_size, 8, Z_DEFAULT_STRATEGY) != Z_OK) { KM_FREE(state, KM_DEVBUF); return NULL; }