summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_ia.c
diff options
context:
space:
mode:
authorF. Aragon <paco@voltanet.io>2018-09-12 12:18:44 +0200
committerF. Aragon <paco@voltanet.io>2018-09-12 16:44:36 +0200
commitf7813c7c7fe3f6a12deb51de00bbf029b725f166 (patch)
tree1f8d29d968524c8d48dc974dd5ed981cba4aee14 /ospfd/ospf_ia.c
parentMerge pull request #2944 from thbtcllt/master (diff)
downloadfrr-f7813c7c7fe3f6a12deb51de00bbf029b725f166.tar.xz
frr-f7813c7c7fe3f6a12deb51de00bbf029b725f166.zip
bgpd isisd ospf6d ospfd: variable shadowing fixes
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'ospfd/ospf_ia.c')
-rw-r--r--ospfd/ospf_ia.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/ospfd/ospf_ia.c b/ospfd/ospf_ia.c
index 86d15480a..f1ba8a31e 100644
--- a/ospfd/ospf_ia.c
+++ b/ospfd/ospf_ia.c
@@ -589,23 +589,19 @@ static void ospf_examine_transit_summaries(struct ospf_area *area,
void ospf_ia_routing(struct ospf *ospf, struct route_table *rt,
struct route_table *rtrs)
{
+ struct listnode *node;
struct ospf_area *area;
if (IS_DEBUG_OSPF_EVENT)
zlog_debug("ospf_ia_routing():start");
if (IS_OSPF_ABR(ospf)) {
- struct listnode *node;
- struct ospf_area *area;
-
switch (ospf->abr_type) {
case OSPF_ABR_STAND:
if (IS_DEBUG_OSPF_EVENT)
zlog_debug("ospf_ia_routing():Standard ABR");
if ((area = ospf->backbone)) {
- struct listnode *node;
-
if (IS_DEBUG_OSPF_EVENT) {
zlog_debug(
"ospf_ia_routing():backbone area found");
@@ -694,8 +690,6 @@ void ospf_ia_routing(struct ospf *ospf, struct route_table *rt,
break;
}
} else {
- struct listnode *node;
-
if (IS_DEBUG_OSPF_EVENT)
zlog_debug(
"ospf_ia_routing():not ABR, considering all areas");