summaryrefslogtreecommitdiff
path: root/sys/ufs
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2006-12-29 13:04:38 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2006-12-29 13:04:38 +0000
commitba02f4c341ab798b8da15c745fc34262ae5a5453 (patch)
tree9473fe40366c845b982fc8384589829f15cd5fe0 /sys/ufs
parentb7675ae17e9bbe19e88fdbe069031a9a676974c3 (diff)
Avoid void * arithmetic, okay deraadt@, suggestions from millert@
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ufs/ufs_vnops.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c
index 0efa09d83e0..926a8f322b9 100644
--- a/sys/ufs/ufs/ufs_vnops.c
+++ b/sys/ufs/ufs/ufs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ufs_vnops.c,v 1.72 2006/01/09 12:43:17 pedro Exp $ */
+/* $OpenBSD: ufs_vnops.c,v 1.73 2006/12/29 13:04:37 pedro Exp $ */
/* $NetBSD: ufs_vnops.c,v 1.18 1996/05/11 18:28:04 mycroft Exp $ */
/*
@@ -1556,7 +1556,8 @@ ufs_readdir(void *v)
panic("ufs_readdir: lost in space");
dpstart = (struct dirent *)
- (uio->uio_iov->iov_base - (uio->uio_offset - off));
+ ((char *)uio->uio_iov->iov_base -
+ (uio->uio_offset - off));
offstart = off;
for (dp = dpstart, ncookies = 0; off < uio->uio_offset; ) {
if (dp->d_reclen == 0)