diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2001-06-26 06:27:41 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2001-06-26 06:27:41 +0000 |
commit | d4aba5f28304432a57f9be423624f773dd99cc52 (patch) | |
tree | 6f9d83b7417b056ac09f01972553d9ae6021d4b8 /sys/kern/kern_subr.c | |
parent | 97dcba5b2f6f34385ffbae1a6c2d741e3f9589a3 (diff) |
Appease gcc by not using void pointers in arithmetic operations; art@ ok
Diffstat (limited to 'sys/kern/kern_subr.c')
-rw-r--r-- | sys/kern/kern_subr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_subr.c b/sys/kern/kern_subr.c index 4fd1742f18f..5aa0de85615 100644 --- a/sys/kern/kern_subr.c +++ b/sys/kern/kern_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_subr.c,v 1.17 2001/06/23 05:45:13 art Exp $ */ +/* $OpenBSD: kern_subr.c,v 1.18 2001/06/26 06:27:40 aaron Exp $ */ /* $NetBSD: kern_subr.c,v 1.15 1996/04/09 17:21:56 ragge Exp $ */ /* @@ -107,7 +107,7 @@ uiomove(cp, n, uio) break; #endif } - iov->iov_base += cnt; + iov->iov_base = (caddr_t)iov->iov_base + cnt; iov->iov_len -= cnt; uio->uio_resid -= cnt; uio->uio_offset += cnt; @@ -157,7 +157,7 @@ again: *(char *)iov->iov_base = c; break; } - iov->iov_base++; + iov->iov_base = (caddr_t)iov->iov_base + 1; iov->iov_len--; uio->uio_resid--; uio->uio_offset++; |