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_lkm.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_lkm.c')
-rw-r--r-- | sys/kern/kern_lkm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_lkm.c b/sys/kern/kern_lkm.c index d74c1555a68..10afec4748f 100644 --- a/sys/kern/kern_lkm.c +++ b/sys/kern/kern_lkm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_lkm.c,v 1.38 2003/04/29 07:14:11 tedu Exp $ */ +/* $OpenBSD: kern_lkm.c,v 1.39 2003/07/21 22:44:50 tedu Exp $ */ /* $NetBSD: kern_lkm.c,v 1.31 1996/03/31 21:40:27 christos Exp $ */ /* @@ -125,7 +125,7 @@ lkmopen(dev_t dev, int flag, int devtype, struct proc *p) * Sleep pending unlock; we use tsleep() to allow * an alarm out of the open. */ - error = tsleep((caddr_t)&lkm_v, TTIPRI|PCATCH, "lkmopn", 0); + error = tsleep(&lkm_v, TTIPRI|PCATCH, "lkmopn", 0); if (error) return (error); /* leave LKM_WANT set -- no problem */ } @@ -268,7 +268,7 @@ lkmclose(dev_t dev, int flag, int mode, struct proc *p) lkmfree(curp); } lkm_v &= ~LKM_ALLOC; - wakeup((caddr_t)&lkm_v); /* thundering herd "problem" here */ + wakeup(&lkm_v); /* thundering herd "problem" here */ return (0); } |