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/zebra_pw.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/zebra_pw.c')
| -rw-r--r-- | zebra/zebra_pw.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/zebra/zebra_pw.c b/zebra/zebra_pw.c index ce9f19c3cc..0ca7e34b23 100644 --- a/zebra/zebra_pw.c +++ b/zebra/zebra_pw.c @@ -274,11 +274,9 @@ void zebra_pw_client_close(struct zserv *client) struct zebra_vrf *zvrf; struct zebra_pw *pw, *tmp; - RB_FOREACH(vrf, vrf_id_head, &vrfs_by_id) - { + RB_FOREACH (vrf, vrf_id_head, &vrfs_by_id) { zvrf = vrf->info; - RB_FOREACH_SAFE(pw, zebra_pw_head, &zvrf->pseudowires, tmp) - { + RB_FOREACH_SAFE (pw, zebra_pw_head, &zvrf->pseudowires, tmp) { if (pw->client != client) continue; zebra_pw_del(zvrf, pw); @@ -450,8 +448,7 @@ DEFUN (show_pseudowires, vty_out(vty, "%-16s %-24s %-12s %-8s %-10s\n", "Interface", "Neighbor", "Labels", "Protocol", "Status"); - RB_FOREACH(pw, zebra_pw_head, &zvrf->pseudowires) - { + RB_FOREACH (pw, zebra_pw_head, &zvrf->pseudowires) { char buf_nbr[INET6_ADDRSTRLEN]; char buf_labels[64]; @@ -486,8 +483,7 @@ static int zebra_pw_config(struct vty *vty) if (!zvrf) return 0; - RB_FOREACH(pw, zebra_static_pw_head, &zvrf->static_pseudowires) - { + RB_FOREACH (pw, zebra_static_pw_head, &zvrf->static_pseudowires) { vty_out(vty, "pseudowire %s\n", pw->ifname); if (pw->local_label != MPLS_NO_LABEL && pw->remote_label != MPLS_NO_LABEL) |
