summaryrefslogtreecommitdiff
path: root/ospfd/ospf_routemap.c
diff options
context:
space:
mode:
Diffstat (limited to 'ospfd/ospf_routemap.c')
-rw-r--r--ospfd/ospf_routemap.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/ospfd/ospf_routemap.c b/ospfd/ospf_routemap.c
index f2769c6f38..bec0ec039b 100644
--- a/ospfd/ospf_routemap.c
+++ b/ospfd/ospf_routemap.c
@@ -69,15 +69,18 @@ static void ospf_route_map_update(const char *name)
struct route_map *old = ROUTEMAP(red);
/* Update route-map. */
- ROUTEMAP(red) = route_map_lookup_by_name(
- ROUTEMAP_NAME(red));
-
- /* No update for this distribute type. */
- if (old == NULL && ROUTEMAP(red) == NULL)
+ ROUTEMAP(red) =
+ route_map_lookup_by_name(
+ ROUTEMAP_NAME(red));
+
+ /* No update for this distribute type.
+ */
+ if (old == NULL
+ && ROUTEMAP(red) == NULL)
continue;
- ospf_distribute_list_update(ospf, type,
- red->instance);
+ ospf_distribute_list_update(
+ ospf, type, red->instance);
}
}
}
@@ -103,8 +106,8 @@ static void ospf_route_map_event(route_map_event_t event, const char *name)
for (ALL_LIST_ELEMENTS_RO(red_list, node, red)) {
if (ROUTEMAP_NAME(red) && ROUTEMAP(red)
&& !strcmp(ROUTEMAP_NAME(red), name)) {
- ospf_distribute_list_update(ospf, type,
- red->instance);
+ ospf_distribute_list_update(
+ ospf, type, red->instance);
}
}
}