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/irdp_main.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/irdp_main.c')
| -rw-r--r-- | zebra/irdp_main.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/zebra/irdp_main.c b/zebra/irdp_main.c index 9dfa854725..bc85e983e7 100644 --- a/zebra/irdp_main.c +++ b/zebra/irdp_main.c @@ -322,21 +322,21 @@ static int irdp_finish(void) zlog_info("IRDP: Received shutdown notification."); - RB_FOREACH(vrf, vrf_id_head, &vrfs_by_id) - for (ALL_LIST_ELEMENTS(vrf->iflist, node, nnode, ifp)) { - zi = ifp->info; - - if (!zi) - continue; - irdp = zi->irdp; - if (!irdp) - continue; - - if (irdp->flags & IF_ACTIVE) { - irdp->flags |= IF_SHUTDOWN; - irdp_advert_off(ifp); + RB_FOREACH (vrf, vrf_id_head, &vrfs_by_id) + for (ALL_LIST_ELEMENTS(vrf->iflist, node, nnode, ifp)) { + zi = ifp->info; + + if (!zi) + continue; + irdp = zi->irdp; + if (!irdp) + continue; + + if (irdp->flags & IF_ACTIVE) { + irdp->flags |= IF_SHUTDOWN; + irdp_advert_off(ifp); + } } - } return 0; } |
