summaryrefslogtreecommitdiff
path: root/bgpd/bgp_community.c
diff options
context:
space:
mode:
authorpaul <paul>2005-06-28 12:44:16 +0000
committerpaul <paul>2005-06-28 12:44:16 +0000
commit94f2b3923e9663d0355a829f22e4e31cf68ee7b8 (patch)
tree59c0291a76b1c97fbb089abb479307f19cdfd4c1 /bgpd/bgp_community.c
parent7cad40007b9714dba65065916ea68577f9d3d6dd (diff)
2005-06-28 Paul Jakma <paul.jakma@sun.com>
* (global) The great bgpd extern and static'ification. * bgp_routemap.c: remove unused ROUTE_MATCH_ASPATH_OLD code (route_set_metric_compile) fix u_int32_t to ULONG_MAX comparison warnings. * bgp_route.h: (bgp_process, bgp_withdraw, bgp_update) export these used by various files which had their own private declarations, in the case of mplsvpn - incorrect.
Diffstat (limited to 'bgpd/bgp_community.c')
-rw-r--r--bgpd/bgp_community.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/bgpd/bgp_community.c b/bgpd/bgp_community.c
index 1a6514bc..35e644b1 100644
--- a/bgpd/bgp_community.c
+++ b/bgpd/bgp_community.c
@@ -29,8 +29,8 @@ Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
struct hash *comhash;
/* Allocate a new communities value. */
-struct community *
-community_new ()
+static struct community *
+community_new (void)
{
return (struct community *) XCALLOC (MTYPE_COMMUNITY,
sizeof (struct community));
@@ -48,7 +48,7 @@ community_free (struct community *com)
}
/* Add one community value to the community. */
-void
+static void
community_add_val (struct community *com, u_int32_t val)
{
com->size++;
@@ -112,7 +112,7 @@ community_delete (struct community *com1, struct community *com2)
}
/* Callback function from qsort(). */
-int
+static int
community_compare (const void *a1, const void *a2)
{
u_int32_t v1;
@@ -144,7 +144,7 @@ community_include (struct community *com, u_int32_t val)
return 0;
}
-u_int32_t
+static u_int32_t
community_val_get (struct community *com, int i)
{
u_char *p;
@@ -472,7 +472,7 @@ enum community_token
};
/* Get next community token from string. */
-const char *
+static const char *
community_gettoken (const char *buf, enum community_token *token,
u_int32_t *val)
{
@@ -617,14 +617,14 @@ community_count ()
/* Return communities hash. */
struct hash *
-community_hash ()
+community_hash (void)
{
return comhash;
}
/* Initialize comminity related hash. */
void
-community_init ()
+community_init (void)
{
comhash = hash_create (community_hash_make, community_cmp);
}