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/gzip.c | |
| parent | 85b8545edbd1ffba5d97ad74f360d2274db63726 (diff) | |
| download | plan9port-3ca675a579e5dc06a10c199aa7b9d78eefa69642.tar.gz plan9port-3ca675a579e5dc06a10c199aa7b9d78eefa69642.zip | |
shut up gcc!
Diffstat (limited to 'src/cmd/gzip/gzip.c')
| -rw-r--r-- | src/cmd/gzip/gzip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/gzip/gzip.c b/src/cmd/gzip/gzip.c index f4038b88..4379f405 100644 --- a/src/cmd/gzip/gzip.c +++ b/src/cmd/gzip/gzip.c @@ -180,7 +180,7 @@ gzip(char *file, long mtime, int ifd, Biobuf *bout) crc = 0; eof = 0; totr = 0; - err = deflate(bout, gzwrite, (void*)ifd, crcread, level, debug); + err = deflate(bout, gzwrite, (void*)(uintptr)ifd, crcread, level, debug); if(err != FlateOk){ fprint(2, "gzip: deflate failed: %s\n", flateerr(err)); return 0; @@ -206,7 +206,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) |
