diff options
| author | rsc <devnull@localhost> | 2006-04-20 20:28:08 +0000 |
|---|---|---|
| committer | rsc <devnull@localhost> | 2006-04-20 20:28:08 +0000 |
| commit | 3ca675a579e5dc06a10c199aa7b9d78eefa69642 (patch) | |
| tree | 72d7b3408620b6a08f8e820e7bbd507dbb52f1bd /src/cmd/gzip/gunzip.c | |
| parent | 85b8545edbd1ffba5d97ad74f360d2274db63726 (diff) | |
| download | plan9port-3ca675a579e5dc06a10c199aa7b9d78eefa69642.tar.gz plan9port-3ca675a579e5dc06a10c199aa7b9d78eefa69642.zip | |
shut up gcc!
Diffstat (limited to 'src/cmd/gzip/gunzip.c')
| -rw-r--r-- | src/cmd/gzip/gunzip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/gzip/gunzip.c b/src/cmd/gzip/gunzip.c index 3a1c058e..fc45ef28 100644 --- a/src/cmd/gzip/gunzip.c +++ b/src/cmd/gzip/gunzip.c @@ -189,7 +189,7 @@ gunzip(int ofd, char *ofile, Biobuf *bin) if(!table && verbose) fprint(2, "extracting %s to %s\n", h.file, ofile); - err = inflate((void*)ofd, crcwrite, bin, (int(*)(void*))Bgetc); + err = inflate((void*)(uintptr)ofd, crcwrite, bin, (int(*)(void*))Bgetc); if(err != FlateOk) error("inflate failed: %s", flateerr(err)); @@ -324,7 +324,7 @@ crcwrite(void *out, void *buf, int n) wlen += n; crc = blockcrc(crctab, crc, buf, n); - fd = (int)out; + fd = (int)(uintptr)out; if(fd < 0) return n; nw = write(fd, buf, n); |
