aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/gzip/zip.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-04-20 20:28:08 +0000
committerrsc <devnull@localhost>2006-04-20 20:28:08 +0000
commit3ca675a579e5dc06a10c199aa7b9d78eefa69642 (patch)
tree72d7b3408620b6a08f8e820e7bbd507dbb52f1bd /src/cmd/gzip/zip.c
parent85b8545edbd1ffba5d97ad74f360d2274db63726 (diff)
downloadplan9port-3ca675a579e5dc06a10c199aa7b9d78eefa69642.tar.gz
plan9port-3ca675a579e5dc06a10c199aa7b9d78eefa69642.tar.bz2
plan9port-3ca675a579e5dc06a10c199aa7b9d78eefa69642.zip
shut up gcc!
Diffstat (limited to 'src/cmd/gzip/zip.c')
-rw-r--r--src/cmd/gzip/zip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/gzip/zip.c b/src/cmd/gzip/zip.c
index bd87d2ec..73fb7db5 100644
--- a/src/cmd/gzip/zip.c
+++ b/src/cmd/gzip/zip.c
@@ -169,7 +169,7 @@ zip(Biobuf *bout, char *file, int stdout)
eof = 0;
totr = 0;
totw = 0;
- err = deflate(bout, zwrite, (void*)fd, crcread, level, debug);
+ err = deflate(bout, zwrite, (void*)(uintptr)fd, crcread, level, debug);
if(err != FlateOk)
error("deflate failed: %s: %r", flateerr(err));
@@ -324,7 +324,7 @@ crcread(void *fd, void *buf, int n)
nr = 0;
for(; !eof && n > 0; n -= m){
- m = read((int)fd, (char*)buf+nr, n);
+ m = read((int)(uintptr)fd, (char*)buf+nr, n);
if(m <= 0){
eof = 1;
if(m < 0)