-/* $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
#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));
}
void
-zfree(notused, ptr, nbytes)
+zfree(notused, ptr)
void *notused;
void *ptr;
- u_int nbytes;
{
KM_FREE(ptr, KM_DEVBUF);
}
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;
}