[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.
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index ba6412e..6c21e3f 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -605,10 +605,8 @@
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 @@
if (ROUTE_MAP_OUT_NAME (filter)
|| ri->suppress)
{
+ struct bgp_info info;
+ struct attr dummy_attr;
+
info.peer = peer;
info.attr = attr;