summaryrefslogtreecommitdiffstats
path: root/sbin/camcontrol
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2011-11-04 13:36:02 +0000
committered <ed@FreeBSD.org>2011-11-04 13:36:02 +0000
commit5b02333e84f8998d65b39ad509f9c9c5b9df1186 (patch)
tree3cdfecf4c6772b1de7694dadb6b4b6431ecfdb02 /sbin/camcontrol
parent89ec155d247591875dd57c531f710aa8a05cdb16 (diff)
downloadFreeBSD-src-5b02333e84f8998d65b39ad509f9c9c5b9df1186.zip
FreeBSD-src-5b02333e84f8998d65b39ad509f9c9c5b9df1186.tar.gz
Add missing static keywords for global variables to tools in sbin/.
These tools declare global variables without using the static keyword, even though their use is limited to a single C-file, or without placing an extern declaration of them in the proper header file.
Diffstat (limited to 'sbin/camcontrol')
-rw-r--r--sbin/camcontrol/camcontrol.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/camcontrol/camcontrol.c b/sbin/camcontrol/camcontrol.c
index 9ec83f5..7612f5c 100644
--- a/sbin/camcontrol/camcontrol.c
+++ b/sbin/camcontrol/camcontrol.c
@@ -140,7 +140,7 @@ static const char smppc_opts[] = "a:A:d:lm:M:o:p:s:S:T:";
static const char smpphylist_opts[] = "lq";
#endif
-struct camcontrol_opts option_table[] = {
+static struct camcontrol_opts option_table[] = {
#ifndef MINIMALISTIC
{"tur", CAM_CMD_TUR, CAM_ARG_NONE, NULL},
{"inquiry", CAM_CMD_INQUIRY, CAM_ARG_NONE, "DSR"},
@@ -207,8 +207,8 @@ struct cam_devlist {
path_id_t path_id;
};
-cam_cmdmask cmdlist;
-cam_argmask arglist;
+static cam_cmdmask cmdlist;
+static cam_argmask arglist;
camcontrol_optret getoption(struct camcontrol_opts *table, char *arg,
uint32_t *cmdnum, cam_argmask *argnum,
@@ -4646,7 +4646,7 @@ bailout:
return (error);
}
-struct camcontrol_opts phy_ops[] = {
+static struct camcontrol_opts phy_ops[] = {
{"nop", SMP_PC_PHY_OP_NOP, CAM_ARG_NONE, NULL},
{"linkreset", SMP_PC_PHY_OP_LINK_RESET, CAM_ARG_NONE, NULL},
{"hardreset", SMP_PC_PHY_OP_HARD_RESET, CAM_ARG_NONE, NULL},
OpenPOWER on IntegriCloud