summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_route.c
diff options
context:
space:
mode:
authorChris Hall <GMCH@hestia.halldom.com>2010-04-16 22:28:41 +0100
committerChris Hall <GMCH@hestia.halldom.com>2010-04-16 22:28:41 +0100
commit075b751cfe1ae87c416eceb68e01b5f8b9a9e92b (patch)
tree1d6089008cab2d37422e5859c5e8c04faf1ba23e /bgpd/bgp_route.c
parent62ecf51e3c652c65c84bb94d794f2533cee1fb9c (diff)
downloadquagga-075b751cfe1ae87c416eceb68e01b5f8b9a9e92b.tar.bz2
quagga-075b751cfe1ae87c416eceb68e01b5f8b9a9e92b.tar.xz
Further reduction of warnings under gcc 4.2.1
Diffstat (limited to 'bgpd/bgp_route.c')
-rw-r--r--bgpd/bgp_route.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index 875ff648..6553b3ff 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -1570,7 +1570,7 @@ bgp_process_main (struct work_queue *wq, work_queue_item item)
struct bgp_node *rn ;
afi_t afi ;
safi_t safi ;
- struct prefix *p = &rn->p;
+ struct prefix *p ;
struct bgp_info *new_select;
struct bgp_info *old_select;
struct bgp_info_pair old_and_new;
@@ -1591,6 +1591,8 @@ bgp_process_main (struct work_queue *wq, work_queue_item item)
afi = rn->table->afi;
safi = rn->table->safi;
+ p = &rn->p ;
+
/* Best path selection. */
bgp_best_selection (bgp, rn, &old_and_new);
old_select = old_and_new.old;