From: Stephen Hemminger Date: Fri, 15 May 2009 17:28:11 +0000 (-0700) Subject: [BGP/cleanup] make ecommunity variables/functions local X-Git-Tag: frr-2.0-rc1~2292 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=ffa4e2c4712ddcb5085971aaf001f030723ee307;p=matthieu%2Ffrr.git [BGP/cleanup] make ecommunity variables/functions local --- diff --git a/bgpd/bgp_ecommunity.c b/bgpd/bgp_ecommunity.c index 4d9fc708a0..6152a1db21 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 278721c86b..5c8deb5615 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 *);