mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-11-01 12:47:16 +00:00
[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.
This commit is contained in:
parent
aa94ca86ba
commit
7c7fa1b431
@ -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>
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user