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.
diff --git a/bgpd/bgp_table.c b/bgpd/bgp_table.c
index c468173..a9199d6 100644
--- a/bgpd/bgp_table.c
+++ b/bgpd/bgp_table.c
@@ -50,7 +50,7 @@
bgp_table_free (rt);
}
-struct bgp_node *
+static struct bgp_node *
bgp_node_create ()
{
struct bgp_node *rn;
@@ -61,7 +61,7 @@
}
/* Allocate new route node with prefix set. */
-struct bgp_node *
+static struct bgp_node *
bgp_node_set (struct bgp_table *table, struct prefix *prefix)
{
struct bgp_node *node;
@@ -75,7 +75,7 @@
}
/* Free route node. */
-void
+static void
bgp_node_free (struct bgp_node *node)
{
XFREE (MTYPE_BGP_NODE, node);