From 94f2b3923e9663d0355a829f22e4e31cf68ee7b8 Mon Sep 17 00:00:00 2001 From: paul Date: Tue, 28 Jun 2005 12:44:16 +0000 Subject: 2005-06-28 Paul Jakma * (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. --- bgpd/bgp_community.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'bgpd/bgp_community.c') 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); } -- cgit v1.2.3