X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/5366aed8eefc275bcff5862885da511dbe16ccdf..c85623f918b8a6c639afc15604414f9b113bb20d:/sshzlib.c diff --git a/sshzlib.c b/sshzlib.c index ae60bb10..d652d5c8 100644 --- a/sshzlib.c +++ b/sshzlib.c @@ -610,7 +610,7 @@ void zlib_compress_cleanup(void *handle) * length adjustment (which is only valid for packets < 65536 * bytes, but that seems reasonable enough). */ -int zlib_disable_compression(void *handle) +static int zlib_disable_compression(void *handle) { struct LZ77Context *ectx = (struct LZ77Context *)handle; struct Outbuf *out = (struct Outbuf *) ectx->userdata; @@ -956,6 +956,7 @@ void *zlib_decompress_init(void) dctx->currlentable = dctx->currdisttable = dctx->lenlentable = NULL; dctx->bits = 0; dctx->nbits = 0; + dctx->winpos = 0; return dctx; } @@ -973,7 +974,7 @@ void zlib_decompress_cleanup(void *handle) sfree(dctx); } -int zlib_huflookup(unsigned long *bitsp, int *nbitsp, +static int zlib_huflookup(unsigned long *bitsp, int *nbitsp, struct zlib_table *tab) { unsigned long bits = *bitsp;