]> git.puffer.fish Git - matthieu/frr.git/commitdiff
[BGP/cleanup] make ecommunity variables/functions local
authorStephen Hemminger <stephen.hemminger@vyatta.com>
Fri, 15 May 2009 17:28:11 +0000 (10:28 -0700)
committerPaul Jakma <paul@quagga.net>
Thu, 18 Jun 2009 19:18:30 +0000 (20:18 +0100)
bgpd/bgp_ecommunity.c
bgpd/bgp_ecommunity.h

index 4d9fc708a088e35b193f70a8c4370e765cfdf8ab..6152a1db2157c0620e66884ed44e182cd70f7c73 100644 (file)
@@ -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;
 \f
 /* Allocate a new ecommunities.  */
-struct ecommunity *
+static struct ecommunity *
 ecommunity_new (void)
 {
   return (struct ecommunity *) XCALLOC (MTYPE_ECOMMUNITY,
index 278721c86b9725d02ac94cb429dbd614a664672c..5c8deb561588a591420cfdfe5c0d53df72f329f8 100644 (file)
@@ -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 *);