Make variables static where appropriate.

Found by:	cscout
This commit is contained in:
thompsa 2009-06-13 04:56:45 +00:00
parent 8adb2bbd23
commit c8cae40489
9 changed files with 10 additions and 10 deletions

View File

@ -1562,7 +1562,7 @@ ukbd_key2scan(struct ukbd_softc *sc, int code, int shift, int up)
#endif /* UKBD_EMULATE_ATSCANCODE */
keyboard_switch_t ukbdsw = {
static keyboard_switch_t ukbdsw = {
.probe = &ukbd__probe,
.init = &ukbd_init,
.term = &ukbd_term,

View File

@ -257,7 +257,7 @@ static const struct usb_config uchcom_config_data[UCHCOM_N_TRANSFER] = {
},
};
struct ucom_callback uchcom_callback = {
static struct ucom_callback uchcom_callback = {
.usb2_com_cfg_get_status = &uchcom_cfg_get_status,
.usb2_com_cfg_set_dtr = &uchcom_cfg_set_dtr,
.usb2_com_cfg_set_rts = &uchcom_cfg_set_rts,

View File

@ -1103,7 +1103,7 @@ ufoma_stop_write(struct ucom_softc *ucom)
}
}
struct umcpc_modetostr_tab{
static struct umcpc_modetostr_tab{
int mode;
char *str;
}umcpc_modetostr_tab[]={

View File

@ -214,7 +214,7 @@ static const struct usb_config uplcom_config_data[UPLCOM_N_TRANSFER] = {
},
};
struct ucom_callback uplcom_callback = {
static struct ucom_callback uplcom_callback = {
.usb2_com_cfg_get_status = &uplcom_cfg_get_status,
.usb2_com_cfg_set_dtr = &uplcom_cfg_set_dtr,
.usb2_com_cfg_set_rts = &uplcom_cfg_set_rts,

View File

@ -143,7 +143,7 @@ static const struct usb_config uslcom_config[USLCOM_N_TRANSFER] = {
},
};
struct ucom_callback uslcom_callback = {
static struct ucom_callback uslcom_callback = {
.usb2_com_cfg_open = &uslcom_open,
.usb2_com_cfg_close = &uslcom_close,
.usb2_com_cfg_get_status = &uslcom_get_status,

View File

@ -1074,7 +1074,7 @@ static void umass_dump_buffer(struct umass_softc *, uint8_t *, uint32_t,
uint32_t);
#endif
struct usb_config umass_bbb_config[UMASS_T_BBB_MAX] = {
static struct usb_config umass_bbb_config[UMASS_T_BBB_MAX] = {
[UMASS_T_BBB_RESET1] = {
.type = UE_CONTROL,
@ -1164,7 +1164,7 @@ struct usb_config umass_bbb_config[UMASS_T_BBB_MAX] = {
},
};
struct usb_config umass_cbi_config[UMASS_T_CBI_MAX] = {
static struct usb_config umass_cbi_config[UMASS_T_CBI_MAX] = {
[UMASS_T_CBI_RESET1] = {
.type = UE_CONTROL,

View File

@ -254,7 +254,7 @@ DRIVER_MODULE(ustorage_fs, uhub, ustorage_fs_driver, ustorage_fs_devclass, NULL,
MODULE_VERSION(ustorage_fs, 0);
MODULE_DEPEND(ustorage_fs, usb, 1, 1, 1);
struct usb_config ustorage_fs_bbb_config[USTORAGE_FS_T_BBB_MAX] = {
static struct usb_config ustorage_fs_bbb_config[USTORAGE_FS_T_BBB_MAX] = {
[USTORAGE_FS_T_BBB_COMMAND] = {
.type = UE_BULK,

View File

@ -120,7 +120,7 @@ struct cdevsw usb2_devsw = {
static struct cdev* usb2_dev = NULL;
/* character device structure used for /dev/usb */
struct cdevsw usb2_static_devsw = {
static struct cdevsw usb2_static_devsw = {
.d_version = D_VERSION,
.d_ioctl = usb2_static_ioctl,
.d_name = "usb"

View File

@ -93,7 +93,7 @@ enum {
(void) sc; \
} while (0)
#endif
int urtw_preamble_mode = URTW_PREAMBLE_MODE_LONG;
static int urtw_preamble_mode = URTW_PREAMBLE_MODE_LONG;
SYSCTL_INT(_hw_usb_urtw, OID_AUTO, preamble_mode, CTLFLAG_RW,
&urtw_preamble_mode, 0, "set the preable mode (long or short)");
TUNABLE_INT("hw.usb.urtw.preamble_mode", &urtw_preamble_mode);