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/subr_log.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/subr_log.c')
-rw-r--r-- | sys/kern/subr_log.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/kern/subr_log.c b/sys/kern/subr_log.c index 9e40b4ece9b..292bf55e35f 100644 --- a/sys/kern/subr_log.c +++ b/sys/kern/subr_log.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_log.c,v 1.9 2003/06/02 23:28:06 millert Exp $ */ +/* $OpenBSD: subr_log.c,v 1.10 2003/07/21 22:44:50 tedu Exp $ */ /* $NetBSD: subr_log.c,v 1.11 1996/03/30 22:24:44 christos Exp $ */ /* @@ -149,7 +149,7 @@ logread(dev, uio, flag) return (EWOULDBLOCK); } logsoftc.sc_state |= LOG_RDWAIT; - error = tsleep((caddr_t)mbp, LOG_RDPRI | PCATCH, + error = tsleep(mbp, LOG_RDPRI | PCATCH, "klog", 0); if (error) { splx(s); @@ -166,8 +166,7 @@ logread(dev, uio, flag) l = min(l, uio->uio_resid); if (l == 0) break; - error = uiomove((caddr_t)&mbp->msg_bufc[mbp->msg_bufr], - (int)l, uio); + error = uiomove(&mbp->msg_bufc[mbp->msg_bufr], (int)l, uio); if (error) break; mbp->msg_bufr += l; @@ -253,7 +252,7 @@ logwakeup() csignal(logsoftc.sc_pgid, SIGIO, logsoftc.sc_siguid, logsoftc.sc_sigeuid); if (logsoftc.sc_state & LOG_RDWAIT) { - wakeup((caddr_t)msgbufp); + wakeup(msgbufp); logsoftc.sc_state &= ~LOG_RDWAIT; } KNOTE(&logsoftc.sc_selp.si_note, 0); |