diff options
author | dillon <dillon@FreeBSD.org> | 1999-01-28 01:59:53 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 1999-01-28 01:59:53 +0000 |
commit | 9328688fc8b9743439e9dbe6f6364cb0317e387f (patch) | |
tree | 4f99904371de94ee7846eb8f747ab1e5a1fa463b /sys/dev/usb/umodem.c | |
parent | c970e06ccf646c8d420b2216f605eefeef3cdc0d (diff) | |
download | FreeBSD-src-9328688fc8b9743439e9dbe6f6364cb0317e387f.zip FreeBSD-src-9328688fc8b9743439e9dbe6f6364cb0317e387f.tar.gz |
Fix warnings in preparation for adding -Wall -Wcast-qual to the
kernel compile
Diffstat (limited to 'sys/dev/usb/umodem.c')
-rw-r--r-- | sys/dev/usb/umodem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/umodem.c b/sys/dev/usb/umodem.c index bbc162e..4ec326e 100644 --- a/sys/dev/usb/umodem.c +++ b/sys/dev/usb/umodem.c @@ -125,12 +125,12 @@ USB_ATTACH(umodem) static int umodem_detach(device_t self) { - char *devinfo = (char *) device_get_desc(self); + const char *devinfo = device_get_desc(self); DPRINTF(("%s: disconnected\n", USBDEVNAME(self))); if (devinfo) { device_set_desc(self, NULL); - free(devinfo, M_USB); + free((void *)devinfo, M_USB); } return 0; |