From 075b751cfe1ae87c416eceb68e01b5f8b9a9e92b Mon Sep 17 00:00:00 2001 From: Chris Hall Date: Fri, 16 Apr 2010 22:28:41 +0100 Subject: Further reduction of warnings under gcc 4.2.1 --- bgpd/bgp_route.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bgpd/bgp_route.c') 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; -- cgit v1.2.3