diff options
author | Russ Cox <rsc@swtch.com> | 2010-02-22 16:54:58 -0800 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2010-02-22 16:54:58 -0800 |
commit | 8425b514aa027459410a6cbea98799680e33e480 (patch) | |
tree | d3e0eb2db60032c6c26144f0b17ace0ff4b8646a /src/cmd/gzip/zip.c | |
parent | 0c6074b6920c8e115944c9c5e79b74e9faad84cb (diff) | |
download | plan9port-8425b514aa027459410a6cbea98799680e33e480.tar.gz plan9port-8425b514aa027459410a6cbea98799680e33e480.tar.bz2 plan9port-8425b514aa027459410a6cbea98799680e33e480.zip |
various: crctab now u32int
R=rsc
http://codereview.appspot.com/220041
Diffstat (limited to 'src/cmd/gzip/zip.c')
-rw-r--r-- | src/cmd/gzip/zip.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cmd/gzip/zip.c b/src/cmd/gzip/zip.c index 73fb7db5..5480ba84 100644 --- a/src/cmd/gzip/zip.c +++ b/src/cmd/gzip/zip.c @@ -13,7 +13,7 @@ static void zip(Biobuf *bout, char *file, int stdout); static void zipDir(Biobuf *bout, int fd, ZipHead *zh, int stdout); static int crcread(void *fd, void *buf, int n); static int zwrite(void *bout, void *buf, int n); -static void put4(Biobuf *b, ulong v); +static void put4(Biobuf *b, u32int v); static void put2(Biobuf *b, int v); static void put1(Biobuf *b, int v); static void header(Biobuf *bout, ZipHead *zh); @@ -24,14 +24,14 @@ static void error(char*, ...); /* #pragma varargck argpos error 1 */ static Biobuf bout; -static ulong crc; -static ulong *crctab; +static u32int crc; +static u32int *crctab; static int debug; static int eof; static int level; static int nzheads; -static ulong totr; -static ulong totw; +static u32int totr; +static u32int totw; static int verbose; static int zhalloc; static ZipHead *zheads; @@ -353,7 +353,7 @@ zwrite(void *bout, void *buf, int n) } static void -put4(Biobuf *b, ulong v) +put4(Biobuf *b, u32int v) { int i; |