#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))
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);
goto resetbuf;
}
input(inbuf,posbits,code,n_bits,bitmask);
- Tracev((stderr, "%d ", code));
+ Tracev((stderr, "%ld ", code));
if (oldcode == -1) {
if (256 <= code)