diff options
author | Marc Balmer <mbalmer@cvs.openbsd.org> | 2007-06-05 08:43:57 +0000 |
---|---|---|
committer | Marc Balmer <mbalmer@cvs.openbsd.org> | 2007-06-05 08:43:57 +0000 |
commit | 440c92fbdde0969f281d9daf32cbafdb1b057de9 (patch) | |
tree | c79c753268946bdc81f4af8df3e6d8695c7fb7ac /sys/dev/usb/usb_subr.c | |
parent | 3033997e9c562ce3ee8b9bb55e4ecc77e6b90a56 (diff) |
Remove the "Static" declaration of many functions. It was defined to be empty
and it was not consistently used. It was confusing as it suggested these
functions were static, which they were not.
discussed with dlg and jsg, ok jsg.
Diffstat (limited to 'sys/dev/usb/usb_subr.c')
-rw-r--r-- | sys/dev/usb/usb_subr.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/sys/dev/usb/usb_subr.c b/sys/dev/usb/usb_subr.c index 9d702810c78..aeb3945d7dc 100644 --- a/sys/dev/usb/usb_subr.c +++ b/sys/dev/usb/usb_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: usb_subr.c,v 1.50 2007/06/03 20:49:25 deraadt Exp $ */ +/* $OpenBSD: usb_subr.c,v 1.51 2007/06/05 08:43:56 mbalmer Exp $ */ /* $NetBSD: usb_subr.c,v 1.103 2003/01/10 11:19:13 augustss Exp $ */ /* $FreeBSD: src/sys/dev/usb/usb_subr.c,v 1.18 1999/11/17 22:33:47 n_hibma Exp $ */ @@ -66,26 +66,26 @@ extern int usbdebug; #define DPRINTFN(n,x) #endif -Static usbd_status usbd_set_config(usbd_device_handle, int); -Static void usbd_devinfo(usbd_device_handle, int, char *, size_t); -Static void usbd_devinfo_vp(usbd_device_handle, char *, char *, +usbd_status usbd_set_config(usbd_device_handle, int); +void usbd_devinfo(usbd_device_handle, int, char *, size_t); +void usbd_devinfo_vp(usbd_device_handle, char *, char *, int); -Static char *usbd_get_string(usbd_device_handle, int, char *); -Static int usbd_getnewaddr(usbd_bus_handle); -Static int usbd_print(void *, const char *); -Static int usbd_submatch(device_ptr_t, void *, void *); -Static void usbd_free_iface_data(usbd_device_handle, int); -Static void usbd_kill_pipe(usbd_pipe_handle); -Static usbd_status usbd_probe_and_attach(device_ptr_t, +char *usbd_get_string(usbd_device_handle, int, char *); +int usbd_getnewaddr(usbd_bus_handle); +int usbd_print(void *, const char *); +int usbd_submatch(device_ptr_t, void *, void *); +void usbd_free_iface_data(usbd_device_handle, int); +void usbd_kill_pipe(usbd_pipe_handle); +usbd_status usbd_probe_and_attach(device_ptr_t, usbd_device_handle, int, int); -Static u_int32_t usb_cookie_no = 0; +u_int32_t usb_cookie_no = 0; #ifdef USBVERBOSE #include <dev/usb/usbdevs_data.h> #endif /* USBVERBOSE */ -Static const char * const usbd_error_strs[] = { +const char * const usbd_error_strs[] = { "NORMAL_COMPLETION", "IN_PROGRESS", "PENDING_REQUESTS", @@ -290,7 +290,7 @@ usbd_printBCD(char *cp, size_t len, int bcd) return (l); } -Static void +void usbd_devinfo(usbd_device_handle dev, int showclass, char *base, size_t len) { usb_device_descriptor_t *udd = &dev->ddesc; @@ -561,7 +561,7 @@ usbd_free_iface_data(usbd_device_handle dev, int ifcno) free(ifc->endpoints, M_USB); } -Static usbd_status +usbd_status usbd_set_config(usbd_device_handle dev, int conf) { usb_device_request_t req; |