summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorRobert Nagy <robert@cvs.openbsd.org>2008-11-21 17:55:03 +0000
committerRobert Nagy <robert@cvs.openbsd.org>2008-11-21 17:55:03 +0000
commite2565329eabdd1fb8e2f6aba69ffd761a88caf88 (patch)
tree433bff7262e3dad94be0ce740d04519daa68659b /sys/dev/usb
parent776465e20b9519ed27260d43d3197d36725f5b9c (diff)
cast d->bmaControls to uByte * in uaudio_add_feature()
ok jakemsr@
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/uaudio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/uaudio.c b/sys/dev/usb/uaudio.c
index 72040169853..64c9920a35f 100644
--- a/sys/dev/usb/uaudio.c
+++ b/sys/dev/usb/uaudio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uaudio.c,v 1.60 2008/11/12 16:01:09 sthen Exp $ */
+/* $OpenBSD: uaudio.c,v 1.61 2008/11/21 17:55:02 robert Exp $ */
/* $NetBSD: uaudio.c,v 1.90 2004/10/29 17:12:53 kent Exp $ */
/*
@@ -1058,7 +1058,7 @@ void
uaudio_add_feature(struct uaudio_softc *sc, const struct io_terminal *iot, int id)
{
const struct usb_audio_feature_unit *d = iot[id].d.fu;
- uByte *ctls = d->bmaControls;
+ uByte *ctls = (uByte *)d->bmaControls;
int ctlsize = d->bControlSize;
int nchan = (d->bLength - 7) / ctlsize;
u_int fumask, mmask, cmask;