summaryrefslogtreecommitdiff
path: root/bgpd
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-05-15 10:28:11 -0700
committerPaul Jakma <paul@quagga.net>2009-06-18 20:18:30 +0100
commitffa4e2c4712ddcb5085971aaf001f030723ee307 (patch)
treec678f391c427079ec667413f63bc26d5b422c4d7 /bgpd
parent372b3c70a090359fe401dbb5e7c34ff8ae09f757 (diff)
[BGP/cleanup] make ecommunity variables/functions local
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/bgp_ecommunity.c4
-rw-r--r--bgpd/bgp_ecommunity.h1
2 files changed, 2 insertions, 3 deletions
diff --git a/bgpd/bgp_ecommunity.c b/bgpd/bgp_ecommunity.c
index 4d9fc708..6152a1db 100644
--- a/bgpd/bgp_ecommunity.c
+++ b/bgpd/bgp_ecommunity.c
@@ -30,10 +30,10 @@ Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
#include "bgpd/bgp_aspath.h"
/* Hash of community attribute. */
-struct hash *ecomhash;
+static struct hash *ecomhash;
/* Allocate a new ecommunities. */
-struct ecommunity *
+static struct ecommunity *
ecommunity_new (void)
{
return (struct ecommunity *) XCALLOC (MTYPE_ECOMMUNITY,
diff --git a/bgpd/bgp_ecommunity.h b/bgpd/bgp_ecommunity.h
index 278721c8..5c8deb56 100644
--- a/bgpd/bgp_ecommunity.h
+++ b/bgpd/bgp_ecommunity.h
@@ -67,7 +67,6 @@ struct ecommunity_val
extern void ecommunity_init (void);
extern void ecommunity_free (struct ecommunity *);
-extern struct ecommunity *ecommunity_new (void);
extern struct ecommunity *ecommunity_parse (u_int8_t *, u_short);
extern struct ecommunity *ecommunity_dup (struct ecommunity *);
extern struct ecommunity *ecommunity_merge (struct ecommunity *, struct ecommunity *);