From a2addae8fe172f04f4d8ac99aa123a7d2dd64604 Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Fri, 15 Sep 2017 12:47:35 -0300 Subject: *: use clang's 'ForEachMacros' format style option This fixes the broken indentation of several foreach loops throughout the code. From clang's documentation[1]: ForEachMacros: A vector of macros that should be interpreted as foreach loops instead of as function calls. [1] http://clang.llvm.org/docs/ClangFormatStyleOptions.html Signed-off-by: Renato Westphal --- zebra/irdp_main.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'zebra/irdp_main.c') 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; } -- cgit v1.2.3