diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2003-07-21 22:44:51 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2003-07-21 22:44:51 +0000 |
commit | df166500c6be14954927b1a75859971830259a91 (patch) | |
tree | 8b42ff5a5c7e64f444c80e19f4bead5bcf6c22ae /sys/kern/kern_subr.c | |
parent | 0169217f25a8423bc6243b9a9dfc0702c793ef6e (diff) |
remove caddr_t casts. it's just silly to cast something when the function
takes a void *. convert uiomove to take a void * as well. ok deraadt@
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 cf7b2687779..4b0c4105c9b 100644 --- a/sys/kern/kern_subr.c +++ b/sys/kern/kern_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_subr.c,v 1.24 2003/06/02 23:28:06 millert Exp $ */ +/* $OpenBSD: kern_subr.c,v 1.25 2003/07/21 22:44:50 tedu Exp $ */ /* $NetBSD: kern_subr.c,v 1.15 1996/04/09 17:21:56 ragge Exp $ */ /* @@ -47,7 +47,7 @@ int uiomove(cp, n, uio) - register caddr_t cp; + register void *cp; register int n; register struct uio *uio; { @@ -99,7 +99,7 @@ uiomove(cp, n, uio) iov->iov_len -= cnt; uio->uio_resid -= cnt; uio->uio_offset += cnt; - cp += cnt; + cp = (caddr_t)cp + cnt; n -= cnt; } return (error); |