summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_physio.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2003-07-21 22:44:49 +0000
committertedu <tedu@openbsd.org>2003-07-21 22:44:49 +0000
commit27e97305f0c3aea3dd0dbe471f3881982c7c352a (patch)
treeadeed96de58437521803cd6161deb24b4222b7f4 /sys/kern/kern_physio.c
parentKNF (diff)
downloadwireguard-openbsd-27e97305f0c3aea3dd0dbe471f3881982c7c352a.tar.xz
wireguard-openbsd-27e97305f0c3aea3dd0dbe471f3881982c7c352a.zip
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_physio.c')
-rw-r--r--sys/kern/kern_physio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_physio.c b/sys/kern/kern_physio.c
index fe53055178e..195d077b10f 100644
--- a/sys/kern/kern_physio.c
+++ b/sys/kern/kern_physio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_physio.c,v 1.20 2003/06/02 23:28:05 millert Exp $ */
+/* $OpenBSD: kern_physio.c,v 1.21 2003/07/21 22:44:50 tedu Exp $ */
/* $NetBSD: kern_physio.c,v 1.28 1997/05/19 10:43:28 pk Exp $ */
/*-
@@ -95,7 +95,7 @@ physio(strategy, bp, dev, flags, minphys, uio)
/* [mark the buffer wanted] */
bp->b_flags |= B_WANTED;
/* [wait until the buffer is available] */
- tsleep((caddr_t)bp, PRIBIO+1, "physbuf", 0);
+ tsleep(bp, PRIBIO+1, "physbuf", 0);
}
/* Mark it busy, so nobody else will use it. */
@@ -179,7 +179,7 @@ physio(strategy, bp, dev, flags, minphys, uio)
/* [wait for the transfer to complete] */
while ((bp->b_flags & B_DONE) == 0)
- tsleep((caddr_t) bp, PRIBIO + 1, "physio", 0);
+ tsleep(bp, PRIBIO + 1, "physio", 0);
/* Mark it busy again, so nobody else will use it. */
bp->b_flags |= B_BUSY;