summaryrefslogtreecommitdiffstats
path: root/sys/dev/speaker/spkr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/speaker/spkr.c')
-rw-r--r--sys/dev/speaker/spkr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/speaker/spkr.c b/sys/dev/speaker/spkr.c
index de4c5ca..22b6bf3 100644
--- a/sys/dev/speaker/spkr.c
+++ b/sys/dev/speaker/spkr.c
@@ -140,7 +140,7 @@ tone(thz, ticks)
* emitted.
*/
if (ticks > 0)
- tsleep((caddr_t)&endtone, SPKRPRI | PCATCH, "spkrtn", ticks);
+ tsleep(&endtone, SPKRPRI | PCATCH, "spkrtn", ticks);
SPEAKER_OFF;
sps = splclock();
TIMER_RELEASE;
@@ -161,7 +161,7 @@ rest(ticks)
(void) printf("rest: %d\n", ticks);
#endif /* DEBUG */
if (ticks > 0)
- tsleep((caddr_t)&endrest, SPKRPRI | PCATCH, "spkrrs", ticks);
+ tsleep(&endrest, SPKRPRI | PCATCH, "spkrrs", ticks);
}
/**************** PLAY STRING INTERPRETER BEGINS HERE **********************
@@ -548,8 +548,8 @@ spkrclose(dev, flags, fmt, td)
return(ENXIO);
else
{
- wakeup((caddr_t)&endtone);
- wakeup((caddr_t)&endrest);
+ wakeup(&endtone);
+ wakeup(&endrest);
free(spkr_inbuf, M_SPKR);
spkr_active = FALSE;
return(0);
OpenPOWER on IntegriCloud