X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/6e9e952088e8aa586060aa2464a19186f3d58341..01c034ad857128c51482a563befb374e38ebe668:/sshzlib.c?ds=sidebyside diff --git a/sshzlib.c b/sshzlib.c index 926a2d01..66ab214a 100644 --- a/sshzlib.c +++ b/sshzlib.c @@ -95,12 +95,12 @@ static void lz77_compress(struct LZ77Context *ctx, #define INVALID -1 /* invalid hash _and_ invalid offset */ struct WindowEntry { - int next, prev; /* array indices within the window */ - int hashval; + short next, prev; /* array indices within the window */ + short hashval; }; struct HashEntry { - int first; /* window index of first in chain */ + short first; /* window index of first in chain */ }; struct Match { @@ -393,7 +393,8 @@ static const unsigned char mirrorbytes[256] = { }; typedef struct { - int code, extrabits, min, max; + short code, extrabits; + int min, max; } coderecord; static const coderecord lencodes[] = { @@ -592,7 +593,7 @@ void zlib_compress_init(void) { */ int zlib_disable_compression(void) { struct Outbuf *out = (struct Outbuf *)ectx.userdata; - int n, startbits; + int n; out->comp_disabled = TRUE; @@ -760,7 +761,7 @@ struct zlib_tableentry; struct zlib_tableentry { unsigned char nbits; - int code; + short code; struct zlib_table *nexttable; };