summaryrefslogtreecommitdiffstats
path: root/sbin/atm
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/atm
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/atm')
-rw-r--r--sbin/atm/atmconfig/atmconfig_device.c2
-rw-r--r--sbin/atm/atmconfig/diag.c2
-rw-r--r--sbin/atm/atmconfig/main.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/sbin/atm/atmconfig/atmconfig_device.c b/sbin/atm/atmconfig/atmconfig_device.c
index 082494d..f2f0838 100644
--- a/sbin/atm/atmconfig/atmconfig_device.c
+++ b/sbin/atm/atmconfig/atmconfig_device.c
@@ -103,7 +103,7 @@ static struct atmhw_list atmhw_list;
/*
* Read ATM hardware table
*/
-const struct snmp_table atmhw_table = {
+static const struct snmp_table atmhw_table = {
OIDX_begemotAtmHWTable,
OIDX_begemotAtmIfTableLastChange, 2,
sizeof(struct atmhw),
diff --git a/sbin/atm/atmconfig/diag.c b/sbin/atm/atmconfig/diag.c
index 699d5cc..0211318 100644
--- a/sbin/atm/atmconfig/diag.c
+++ b/sbin/atm/atmconfig/diag.c
@@ -57,7 +57,7 @@ static void diag_phy_print(int, char *[]);
static void diag_phy_stats(int, char *[]);
static void diag_stats(int, char *[]);
-const struct cmdtab diag_phy_tab[] = {
+static const struct cmdtab diag_phy_tab[] = {
{ "show", NULL, diag_phy_show },
{ "set", NULL, diag_phy_set },
{ "stats", NULL, diag_phy_stats },
diff --git a/sbin/atm/atmconfig/main.c b/sbin/atm/atmconfig/main.c
index d2543f7..73e1fac 100644
--- a/sbin/atm/atmconfig/main.c
+++ b/sbin/atm/atmconfig/main.c
@@ -48,7 +48,7 @@ __FBSDID("$FreeBSD$");
#include "private.h"
/* verbosity level */
-int verbose;
+static int verbose;
/* notitle option */
static int notitle;
OpenPOWER on IntegriCloud