diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-07-09 09:45:13 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-07-09 09:45:13 -0700 |
commit | 1d04a859f5d7bf6dca447a14d6b7d3b2d868dc7b (patch) | |
tree | 14853fa929ddf87e3f74f61b7049155fd6af9009 /bgpd/bgp_table.c | |
parent | 560f4b148ec5873f709164869120e32ca33ae660 (diff) | |
parent | 9c39c3bfcdda055eb64876953729f5d4589ced63 (diff) | |
download | quagga-1d04a859f5d7bf6dca447a14d6b7d3b2d868dc7b.tar.bz2 quagga-1d04a859f5d7bf6dca447a14d6b7d3b2d868dc7b.tar.xz |
Merge /home/shemminger/git/quagga into upstream
Diffstat (limited to 'bgpd/bgp_table.c')
-rw-r--r-- | bgpd/bgp_table.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/bgpd/bgp_table.c b/bgpd/bgp_table.c index 810dab54..be598328 100644 --- a/bgpd/bgp_table.c +++ b/bgpd/bgp_table.c @@ -28,8 +28,8 @@ Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA #include "bgpd/bgpd.h" #include "bgpd/bgp_table.h" -void bgp_node_delete (struct bgp_node *); -void bgp_table_free (struct bgp_table *); +static void bgp_node_delete (struct bgp_node *); +static void bgp_table_free (struct bgp_table *); struct bgp_table * bgp_table_init (afi_t afi, safi_t safi) @@ -47,9 +47,10 @@ bgp_table_init (afi_t afi, safi_t safi) } void -bgp_table_finish (struct bgp_table *rt) +bgp_table_finish (struct bgp_table **rt) { - bgp_table_free (rt); + bgp_table_free (*rt); + *rt = NULL; } static struct bgp_node * @@ -84,7 +85,7 @@ bgp_node_free (struct bgp_node *node) } /* Free route table. */ -void +static void bgp_table_free (struct bgp_table *rt) { struct bgp_node *tmp_node; @@ -360,7 +361,7 @@ bgp_node_get (struct bgp_table *table, struct prefix *p) } /* Delete node from the routing table. */ -void +static void bgp_node_delete (struct bgp_node *node) { struct bgp_node *child; |