summaryrefslogtreecommitdiffstats
path: root/sys/dev/ppbus
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2003-03-02 16:54:40 +0000
committerdes <des@FreeBSD.org>2003-03-02 16:54:40 +0000
commit2756b6c9641bd9899a346582c191310de25cccc5 (patch)
tree351747321ab136aa733f670c4c2c235b3639bc1e /sys/dev/ppbus
parent3780674329cabab230b12923047c8aa84e4f05fc (diff)
downloadFreeBSD-src-2756b6c9641bd9899a346582c191310de25cccc5.zip
FreeBSD-src-2756b6c9641bd9899a346582c191310de25cccc5.tar.gz
More low-hanging fruit: kill caddr_t in calls to wakeup(9) / [mt]sleep(9).
Diffstat (limited to 'sys/dev/ppbus')
-rw-r--r--sys/dev/ppbus/lpt.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/ppbus/lpt.c b/sys/dev/ppbus/lpt.c
index 9364c50..43fda7e 100644
--- a/sys/dev/ppbus/lpt.c
+++ b/sys/dev/ppbus/lpt.c
@@ -444,7 +444,7 @@ lptout(void *arg)
lptintr(dev);
} else {
sc->sc_state &= ~OBUSY;
- wakeup((caddr_t)dev);
+ wakeup(dev);
}
}
@@ -523,7 +523,7 @@ lptopen(dev_t dev, int flags, int fmt, struct thread *td)
}
/* wait 1/4 second, give up if we get a signal */
- if (tsleep((caddr_t)lptdev, LPPRI|PCATCH, "lptinit", hz/4) !=
+ if (tsleep(lptdev, LPPRI|PCATCH, "lptinit", hz/4) !=
EWOULDBLOCK) {
sc->sc_state = 0;
splx(s);
@@ -597,7 +597,7 @@ lptclose(dev_t dev, int flags, int fmt, struct thread *td)
(LPS_SEL|LPS_OUT|LPS_NBSY|LPS_NERR)) !=
(LPS_SEL|LPS_NBSY|LPS_NERR) || sc->sc_xfercnt)
/* wait 1/4 second, give up if we get a signal */
- if (tsleep((caddr_t)lptdev, LPPRI|PCATCH,
+ if (tsleep(lptdev, LPPRI|PCATCH,
"lpclose", hz) != EWOULDBLOCK)
break;
@@ -661,7 +661,7 @@ lpt_pushbytes(device_t dev)
*/
if (tic > MAX_SLEEP)
tic = MAX_SLEEP;
- err = tsleep((caddr_t)dev, LPPRI,
+ err = tsleep(dev, LPPRI,
LPT_NAME "poll", tic);
if (err != EWOULDBLOCK) {
return (err);
@@ -796,7 +796,7 @@ lptwrite(dev_t dev, struct uio *uio, int ioflag)
}
lprintf(("W "));
if (sc->sc_state & OBUSY)
- if ((err = tsleep((caddr_t)lptdev,
+ if ((err = tsleep(lptdev,
LPPRI|PCATCH, LPT_NAME "write", 0))) {
sc->sc_state |= INTERRUPTED;
return(err);
@@ -872,7 +872,7 @@ lpt_intr(void *arg)
sc->sc_state &= ~OBUSY;
if(!(sc->sc_state & INTERRUPTED))
- wakeup((caddr_t)lptdev);
+ wakeup(lptdev);
lprintf(("w "));
return;
} else { /* check for error */
OpenPOWER on IntegriCloud