diff options
Diffstat (limited to 'sys/dev/usb/ums.c')
-rw-r--r-- | sys/dev/usb/ums.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/ums.c b/sys/dev/usb/ums.c index ac0ad99..b686f9f 100644 --- a/sys/dev/usb/ums.c +++ b/sys/dev/usb/ums.c @@ -375,7 +375,7 @@ static int ums_detach(device_t self) { struct ums_softc *sc = device_get_softc(self); - char *devinfo = (char *) device_get_desc(self); + const char *devinfo = device_get_desc(self); if (sc->sc_enabled) { usbd_abort_pipe(sc->sc_intrpipe); @@ -386,7 +386,7 @@ ums_detach(device_t self) DPRINTF(("%s: disconnected\n", USBDEVNAME(self))); if (devinfo) { device_set_desc(self, NULL); - free(devinfo, M_USB); + free((void *)devinfo, M_USB); } free(sc->sc_loc_btn, M_USB); free(sc->sc_ibuf, M_USB); |