[Midnightbsd-cvs] src [8425] trunk/sbin/camcontrol/camcontrol.c: static fixes

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Sep 18 17:10:30 EDT 2016


Revision: 8425
          http://svnweb.midnightbsd.org/src/?rev=8425
Author:   laffer1
Date:     2016-09-18 17:10:30 -0400 (Sun, 18 Sep 2016)
Log Message:
-----------
static fixes

Modified Paths:
--------------
    trunk/sbin/camcontrol/camcontrol.c

Modified: trunk/sbin/camcontrol/camcontrol.c
===================================================================
--- trunk/sbin/camcontrol/camcontrol.c	2016-09-18 21:10:06 UTC (rev 8424)
+++ trunk/sbin/camcontrol/camcontrol.c	2016-09-18 21:10:30 UTC (rev 8425)
@@ -142,7 +142,7 @@
 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"},
@@ -210,8 +210,8 @@
 	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,
@@ -4780,7 +4780,7 @@
 	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},



More information about the Midnightbsd-cvs mailing list