summaryrefslogtreecommitdiff
path: root/lib/routemap.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/routemap.c')
-rw-r--r--lib/routemap.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/routemap.c b/lib/routemap.c
index 40daeae41c..3d1add25dc 100644
--- a/lib/routemap.c
+++ b/lib/routemap.c
@@ -1232,9 +1232,8 @@ int route_map_delete_match(struct route_map_index *index,
return 1;
for (rule = index->match_list.head; rule; rule = rule->next)
- if (rule->cmd == cmd
- && (rulecmp(rule->rule_str, match_arg) == 0
- || match_arg == NULL)) {
+ if (rule->cmd == cmd && (rulecmp(rule->rule_str, match_arg) == 0
+ || match_arg == NULL)) {
route_map_rule_delete(&index->match_list, rule);
/* Execute event hook. */
if (route_map_master.event_hook) {
@@ -1320,9 +1319,8 @@ int route_map_delete_set(struct route_map_index *index, const char *set_name,
return 1;
for (rule = index->set_list.head; rule; rule = rule->next)
- if ((rule->cmd == cmd)
- && (rulecmp(rule->rule_str, set_arg) == 0
- || set_arg == NULL)) {
+ if ((rule->cmd == cmd) && (rulecmp(rule->rule_str, set_arg) == 0
+ || set_arg == NULL)) {
route_map_rule_delete(&index->set_list, rule);
/* Execute event hook. */
if (route_map_master.event_hook) {