summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_snmp.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2016-07-28 17:23:45 +0200
committerDonald Sharp <sharpd@cumulusnetwroks.com>2016-07-28 13:27:47 +0200
commit1c6f50bf2dd960b7007eb254f068968fcdfd3149 (patch)
tree9fe8fb5c7b3b660fcc9f74f73787852474084626 /zebra/zebra_snmp.c
parentzebra: fix include for SNMP (diff)
downloadfrr-1c6f50bf2dd960b7007eb254f068968fcdfd3149.tar.xz
frr-1c6f50bf2dd960b7007eb254f068968fcdfd3149.zip
*: snmp: add a load of "static" specifiers
Make it easier to see which bits in *_snmp.c are actually referenced from non-SNMP parts of the code. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to '')
-rw-r--r--zebra/zebra_snmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/zebra_snmp.c b/zebra/zebra_snmp.c
index 3ba9fc26a..3186ebf69 100644
--- a/zebra/zebra_snmp.c
+++ b/zebra/zebra_snmp.c
@@ -85,7 +85,7 @@
#define IPADDRESS ASN_IPADDRESS
#define OBJECTIDENTIFIER ASN_OBJECT_ID
-oid ipfw_oid [] = { IPFWMIB };
+static oid ipfw_oid [] = { IPFWMIB };
/* Hook functions. */
static u_char * ipFwNumber (struct variable *, oid [], size_t *,
@@ -97,7 +97,7 @@ static u_char * ipCidrNumber (struct variable *, oid [], size_t *,
static u_char * ipCidrTable (struct variable *, oid [], size_t *,
int, size_t *, WriteMethod **);
-struct variable zebra_variables[] =
+static struct variable zebra_variables[] =
{
{0, GAUGE32, RONLY, ipFwNumber, 1, {1}},
{IPFORWARDDEST, IPADDRESS, RONLY, ipFwTable, 3, {2, 1, 1}},