]> git.puffer.fish Git - matthieu/frr.git/commitdiff
[bgpd] trivial readability fix
authorPaul Jakma <paul.jakma@sun.com>
Sat, 18 Feb 2006 10:52:09 +0000 (10:52 +0000)
committerPaul Jakma <paul.jakma@sun.com>
Sat, 18 Feb 2006 10:52:09 +0000 (10:52 +0000)
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.

bgpd/ChangeLog
bgpd/bgp_route.c

index 78a22e67046485b5e2f484cb191d36b0ffd2901f..c9d61898464a6ff5971cec6ac79c06c4c40037e5 100644 (file)
@@ -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>
 
index ba6412ee7ad8adbdcb6dcec8362cd07c764ff55c..6c21e3f395adb442d88b1cb9edc2c279f1901b00 100644 (file)
@@ -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;