diff options
author | Pedro Martelletto <pedro@cvs.openbsd.org> | 2006-12-29 13:04:38 +0000 |
---|---|---|
committer | Pedro Martelletto <pedro@cvs.openbsd.org> | 2006-12-29 13:04:38 +0000 |
commit | ba02f4c341ab798b8da15c745fc34262ae5a5453 (patch) | |
tree | 9473fe40366c845b982fc8384589829f15cd5fe0 /sys/nfs/nfs_subs.c | |
parent | b7675ae17e9bbe19e88fdbe069031a9a676974c3 (diff) |
Avoid void * arithmetic, okay deraadt@, suggestions from millert@
Diffstat (limited to 'sys/nfs/nfs_subs.c')
-rw-r--r-- | sys/nfs/nfs_subs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/nfs/nfs_subs.c b/sys/nfs/nfs_subs.c index 6288fe1da0d..7f873996de4 100644 --- a/sys/nfs/nfs_subs.c +++ b/sys/nfs/nfs_subs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_subs.c,v 1.58 2006/11/01 00:12:35 thib Exp $ */ +/* $OpenBSD: nfs_subs.c,v 1.59 2006/12/29 13:04:37 pedro Exp $ */ /* $NetBSD: nfs_subs.c,v 1.27.4.3 1996/07/08 20:34:24 jtc Exp $ */ /* @@ -778,7 +778,7 @@ nfsm_mbuftouio(mrep, uiop, siz, dpos) uiop->uio_iovcnt--; uiop->uio_iov++; } else { - uiop->uio_iov->iov_base += uiosiz; + (char *)uiop->uio_iov->iov_base += uiosiz; uiop->uio_iov->iov_len -= uiosiz; } siz -= uiosiz; @@ -857,7 +857,7 @@ nfsm_uiotombuf(uiop, mq, siz, bpos) uiop->uio_offset += xfer; uiop->uio_resid -= xfer; } - uiop->uio_iov->iov_base += uiosiz; + (char *)uiop->uio_iov->iov_base += uiosiz; uiop->uio_iov->iov_len -= uiosiz; siz -= uiosiz; } |