summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpaul <paul>2006-02-18 10:52:09 +0000
committerpaul <paul>2006-02-18 10:52:09 +0000
commitae0ac3781f80e79f52017e58cdf2951e8fe95bb4 (patch)
tree89b2cf9f08e385bfb4e357b0bf22e426b53b5a9f
parentd2977def385ba124654f8c06faa4f80204e50f11 (diff)
downloadquagga-ae0ac3781f80e79f52017e58cdf2951e8fe95bb4.tar.bz2
quagga-ae0ac3781f80e79f52017e58cdf2951e8fe95bb4.tar.xz
[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.
-rw-r--r--bgpd/ChangeLog3
-rw-r--r--bgpd/bgp_route.c5
2 files changed, 6 insertions, 2 deletions
diff --git a/bgpd/ChangeLog b/bgpd/ChangeLog
index 78a22e67..c9d61898 100644
--- a/bgpd/ChangeLog
+++ b/bgpd/ChangeLog
@@ -4,6 +4,9 @@
for the set-community leak, bug #89. True fix will be to
detangle the web of *_intern caching and provide saner object
caching for Quagga, future work.
+ * 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.
2006-02-05 Paul Jakma <paul.jakma@sun.com>
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;