diff options
| author | Quentin Young <qlyoung@users.noreply.github.com> | 2017-09-17 19:23:16 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-17 19:23:16 -0400 |
| commit | a7dd519b58c9f68d0b74bd6fb5daaf88e84ece63 (patch) | |
| tree | f92c696d8b17e153953d0c3123d03bc7e41c09f3 /zebra/redistribute.c | |
| parent | af34a65a62efc13310facf054ac388d45e9c2e01 (diff) | |
| parent | a2addae8fe172f04f4d8ac99aa123a7d2dd64604 (diff) | |
Merge pull request #1188 from opensourcerouting/foreach_indentation
*: use clang's 'ForEachMacros' format style option
Diffstat (limited to 'zebra/redistribute.c')
| -rw-r--r-- | zebra/redistribute.c | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/zebra/redistribute.c b/zebra/redistribute.c index 93bfc0c031..76e0df40b9 100644 --- a/zebra/redistribute.c +++ b/zebra/redistribute.c @@ -84,12 +84,12 @@ static void zebra_redistribute_default(struct zserv *client, vrf_id_t vrf_id) if (!rn) continue; - RNODE_FOREACH_RE(rn, newre) { + RNODE_FOREACH_RE (rn, newre) { if (CHECK_FLAG(newre->flags, ZEBRA_FLAG_SELECTED) && newre->distance != DISTANCE_INFINITY) zsend_redistribute_route( - ZEBRA_REDISTRIBUTE_ROUTE_ADD, - client, &rn->p, NULL, newre); + ZEBRA_REDISTRIBUTE_ROUTE_ADD, client, + &rn->p, NULL, newre); } route_unlock_node(rn); @@ -109,8 +109,7 @@ static void zebra_redistribute(struct zserv *client, int type, u_short instance, return; for (rn = route_top(table); rn; rn = srcdest_route_next(rn)) - RNODE_FOREACH_RE(rn, newre) - { + RNODE_FOREACH_RE (rn, newre) { struct prefix *dst_p, *src_p; srcdest_rnode_prefixes(rn, &dst_p, &src_p); @@ -506,10 +505,8 @@ int zebra_add_import_table_entry(struct route_node *rn, struct route_entry *re, prefix_copy(&p, &rn->p); - RNODE_FOREACH_RE(rn, same) - { - if (CHECK_FLAG(same->status, - ROUTE_ENTRY_REMOVED)) + RNODE_FOREACH_RE (rn, same) { + if (CHECK_FLAG(same->status, ROUTE_ENTRY_REMOVED)) continue; if (same->type == re->type @@ -620,8 +617,7 @@ int zebra_import_table(afi_t afi, u_int32_t table_id, u_int32_t distance, if (!rn->info) continue; - RNODE_FOREACH_RE(rn, re) - { + RNODE_FOREACH_RE (rn, re) { if (CHECK_FLAG(re->status, ROUTE_ENTRY_REMOVED)) continue; break; @@ -708,11 +704,9 @@ void zebra_import_table_rm_update() if (!rn->info) continue; - RNODE_FOREACH_RE(rn, re) - { - if (CHECK_FLAG( - re->status, - ROUTE_ENTRY_REMOVED)) + RNODE_FOREACH_RE (rn, re) { + if (CHECK_FLAG(re->status, + ROUTE_ENTRY_REMOVED)) continue; break; } |
