summaryrefslogtreecommitdiff
path: root/bgpd/bgp_route.c
diff options
context:
space:
mode:
authorPaul Jakma <paul.jakma@sun.com>2006-02-18 10:52:09 +0000
committerPaul Jakma <paul.jakma@sun.com>2006-02-18 10:52:09 +0000
commit7c7fa1b43100b4358ec0217d950b4aa9a2ec4bfd (patch)
treeb317ffff8d3c3b432d841698b5814e709082fb2f /bgpd/bgp_route.c
parentaa94ca86ba0323d61fc3bc9b881718567ee943b3 (diff)
[bgpd] trivial readability fix
2006-02-18 Paul Jakma <paul.jakma@sun.com> * bgp_route.c: (bgp_announce_check) trivial, move declaration of two local variables into the only block where they are used, to aid the reader.
Diffstat (limited to 'bgpd/bgp_route.c')
-rw-r--r--bgpd/bgp_route.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index ba6412ee..6c21e3f3 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -605,10 +605,8 @@ bgp_announce_check (struct bgp_info *ri, struct peer *peer, struct prefix *p,
int ret;
char buf[SU_ADDRSTRLEN];
struct bgp_filter *filter;
- struct bgp_info info;
struct peer *from;
struct bgp *bgp;
- struct attr dummy_attr;
int transparent;
int reflect;
@@ -871,6 +869,9 @@ bgp_announce_check (struct bgp_info *ri, struct peer *peer, struct prefix *p,
if (ROUTE_MAP_OUT_NAME (filter)
|| ri->suppress)
{
+ struct bgp_info info;
+ struct attr dummy_attr;
+
info.peer = peer;
info.attr = attr;