diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2016-07-28 17:23:45 +0200 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetwroks.com> | 2016-07-28 07:27:47 -0400 | 
| commit | 1c6f50bf2dd960b7007eb254f068968fcdfd3149 (patch) | |
| tree | 9fe8fb5c7b3b660fcc9f74f73787852474084626 /bgpd/bgp_snmp.c | |
| parent | 050ceb3b7c1943d042c79a3940dae9a234a01735 (diff) | |
*: 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 'bgpd/bgp_snmp.c')
| -rw-r--r-- | bgpd/bgp_snmp.c | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/bgpd/bgp_snmp.c b/bgpd/bgp_snmp.c index 84a527b96a..fc5a0eb59c 100644 --- a/bgpd/bgp_snmp.c +++ b/bgpd/bgp_snmp.c @@ -116,8 +116,8 @@ Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  SNMP_LOCAL_VARIABLES  /* BGP-MIB instances. */ -oid bgp_oid [] = { BGP4MIB }; -oid bgp_trap_oid [] = { BGP4MIB, 0 }; +static oid bgp_oid [] = { BGP4MIB }; +static oid bgp_trap_oid [] = { BGP4MIB, 0 };  /* IP address 0.0.0.0. */  static struct in_addr bgp_empty_addr = { .s_addr = 0 }; @@ -137,7 +137,7 @@ static u_char *bgp4PathAttrTable (struct variable *, oid [], size_t *,  				  int, size_t *, WriteMethod **);  /* static u_char *bgpTraps (); */ -struct variable bgp_variables[] =  +static struct variable bgp_variables[] =   {    /* BGP version. */    {BGPVERSION,                OCTET_STRING, RONLY, bgpVersion, @@ -831,7 +831,7 @@ bgp4PathAttrTable (struct variable *v, oid name[], size_t *length,  }  /* BGP Traps. */ -struct trap_object bgpTrapList[] = +static struct trap_object bgpTrapList[] =  {    {3, {3, 1, BGPPEERLASTERROR}},    {3, {3, 1, BGPPEERSTATE}}  | 
