diff options
author | njl <njl@FreeBSD.org> | 2002-09-26 06:19:31 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2002-09-26 06:19:31 +0000 |
commit | 828f0ba6847ed1a96e5d8d1b28409e18fb4e981e (patch) | |
tree | c9c510c366d8d0e813de18935ca4e039bb2c0229 /sys/coda | |
parent | 0202d7a244596cf6bb66e8c4a72ddc413573497d (diff) | |
download | FreeBSD-src-828f0ba6847ed1a96e5d8d1b28409e18fb4e981e.zip FreeBSD-src-828f0ba6847ed1a96e5d8d1b28409e18fb4e981e.tar.gz |
Fix these warns where sizeof(int) != sizeof(void *)
/h/des/src/sys/coda/coda_venus.c: In function `venus_ioctl':
/h/des/src/sys/coda/coda_venus.c:277: warning: cast from pointer to integer of
different size
/h/des/src/sys/coda/coda_venus.c:292: warning: cast from pointer to integer of
different size
/h/des/src/sys/coda/coda_venus.c: In function `venus_readlink':
/h/des/src/sys/coda/coda_venus.c:380: warning: cast from pointer to integer of
different size
/h/des/src/sys/coda/coda_venus.c: In function `venus_readdir':
/h/des/src/sys/coda/coda_venus.c:637: warning: cast from pointer to integer of
different size
Submitted by: des-alpha-tinderbox
Diffstat (limited to 'sys/coda')
-rw-r--r-- | sys/coda/coda_venus.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/coda/coda_venus.c b/sys/coda/coda_venus.c index af6b8a9..66a0b19 100644 --- a/sys/coda/coda_venus.c +++ b/sys/coda/coda_venus.c @@ -274,7 +274,7 @@ venus_ioctl(void *mdp, ViceFid *fid, inp->len = iap->vi.in_size; inp->data = (char *)(sizeof (struct coda_ioctl_in)); - error = copyin(iap->vi.in, (char*)inp + (int)inp->data, + error = copyin(iap->vi.in, (char*)inp + (long)inp->data, iap->vi.in_size); if (error) { CODA_FREE(inp, coda_ioctl_size); @@ -289,7 +289,7 @@ venus_ioctl(void *mdp, ViceFid *fid, if (outp->len > iap->vi.out_size) { error = EINVAL; } else { - error = copyout((char *)outp + (int)outp->data, + error = copyout((char *)outp + (long)outp->data, iap->vi.out, iap->vi.out_size); } } @@ -377,7 +377,7 @@ venus_readlink(void *mdp, ViceFid *fid, if (!error) { CODA_ALLOC(*str, char *, outp->count); *len = outp->count; - bcopy((char *)outp + (int)outp->data, *str, *len); + bcopy((char *)outp + (long)outp->data, *str, *len); } CODA_FREE(inp, coda_readlink_size); @@ -634,7 +634,7 @@ venus_readdir(void *mdp, ViceFid *fid, Osize = VC_MAXMSGSIZE; error = coda_call(mdp, Isize, &Osize, (char *)inp); if (!error) { - bcopy((char *)outp + (int)outp->data, buffer, outp->size); + bcopy((char *)outp + (long)outp->data, buffer, outp->size); *len = outp->size; } |