X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=unlzw.c;h=d5b01f598b13915460762c47675acef4504f4bf1;hb=f55f2be13c2f1afa8d76daadabb3b24c7fe34743;hp=994a86bbe2d1dd8869a48b7328539a9331c16dd4;hpb=d8975123403f54873819c2064769ad1d4c431410;p=debian%2Fgzip diff --git a/unlzw.c b/unlzw.c index 994a86b..d5b01f5 100644 --- a/unlzw.c +++ b/unlzw.c @@ -8,19 +8,19 @@ */ #include -#include "tailor.h" #include #include +#include "tailor.h" #include "gzip.h" #include "lzw.h" -typedef unsigned char char_type; -typedef long code_int; -typedef unsigned long count_int; -typedef unsigned short count_short; -typedef unsigned long cmp_code_int; +typedef unsigned char char_type; +typedef long code_int; +typedef unsigned long count_int; +typedef unsigned short count_short; +typedef unsigned long cmp_code_int; #define MAXCODE(n) (1L << (n)) @@ -123,7 +123,7 @@ int unlzw(in, out) block_mode = maxbits & BLOCK_MODE; if ((maxbits & LZW_RESERVED) != 0) { WARN((stderr, "\n%s: %s: warning, unknown flags 0x%x\n", - program_name, ifname, maxbits & LZW_RESERVED)); + program_name, ifname, (unsigned int) maxbits & LZW_RESERVED)); } maxbits &= BIT_MASK; maxmaxcode = MAXCODE(maxbits); @@ -190,7 +190,7 @@ int unlzw(in, out) goto resetbuf; } input(inbuf,posbits,code,n_bits,bitmask); - Tracev((stderr, "%d ", code)); + Tracev((stderr, "%ld ", code)); if (oldcode == -1) { if (256 <= code)