diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-09-29 00:45:52 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-09-29 00:45:52 +0000 |
commit | b845db9fcdd4658c4dbf80acd50d8166fda3a89e (patch) | |
tree | 8b1c7dbc1196aae04ad9ef2691f7c077f1bed0de | |
parent | d8eb00324cfdd00459400c79ed6d08c698be5825 (diff) |
toast cast of lvalue; pr 4289
-rw-r--r-- | sys/nfs/nfs_vnops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c index 24f7f5899ab..f63d3162ac1 100644 --- a/sys/nfs/nfs_vnops.c +++ b/sys/nfs/nfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_vnops.c,v 1.64 2005/04/21 23:29:04 deraadt Exp $ */ +/* $OpenBSD: nfs_vnops.c,v 1.65 2005/09/29 00:45:51 deraadt Exp $ */ /* $NetBSD: nfs_vnops.c,v 1.62.4.1 1996/07/08 20:26:52 jtc Exp $ */ /* @@ -2162,7 +2162,7 @@ nfs_readdirrpc(struct vnode *vp, left = NFS_READDIRBLKSIZ - blksiz; if ((tlen + NFS_DIRHDSIZ) > left) { dp->d_reclen += left; - (caddr_t)uiop->uio_iov->iov_base += left; + uiop->uio_iov->iov_base += left; uiop->uio_iov->iov_len -= left; uiop->uio_resid -= left; blksiz = 0; @@ -2187,7 +2187,7 @@ nfs_readdirrpc(struct vnode *vp, cp = uiop->uio_iov->iov_base; tlen -= len; *cp = '\0'; /* null terminate */ - (caddr_t)uiop->uio_iov->iov_base += tlen; + uiop->uio_iov->iov_base += tlen; uiop->uio_iov->iov_len -= tlen; uiop->uio_resid -= tlen; } else |