From 3ca675a579e5dc06a10c199aa7b9d78eefa69642 Mon Sep 17 00:00:00 2001 From: rsc Date: Thu, 20 Apr 2006 20:28:08 +0000 Subject: shut up gcc! --- src/cmd/gzip/unzip.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/cmd/gzip/unzip.c') diff --git a/src/cmd/gzip/unzip.c b/src/cmd/gzip/unzip.c index 990e4b6d..ad43154f 100644 --- a/src/cmd/gzip/unzip.c +++ b/src/cmd/gzip/unzip.c @@ -441,7 +441,7 @@ unzipEntry(Biobuf *bin, ZipHead *czh) error("copying data for %s failed: %r", zh.file); }else if(zh.meth == 8){ off = Boffset(bin); - err = inflate((void*)fd, crcwrite, bin, (int(*)(void*))Bgetc); + err = inflate((void*)(uintptr)fd, crcwrite, bin, (int(*)(void*))Bgetc); if(err != FlateOk) error("inflate failed: %s", flateerr(err)); rlen = Boffset(bin) - off; @@ -650,7 +650,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); @@ -673,7 +673,7 @@ copyout(int ofd, Biobuf *bin, long len) if(n <= 0) return 0; rlen += n; - if(crcwrite((void*)ofd, buf, n) != n) + if(crcwrite((void*)(uintptr)ofd, buf, n) != n) return 0; } return 1; -- cgit v1.2.3