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/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'zebra/main.c') diff --git a/zebra/main.c b/zebra/main.c index bc7276817d..4864b4961d 100644 --- a/zebra/main.c +++ b/zebra/main.c @@ -131,8 +131,7 @@ static void sigint(void) list_delete_all_node(zebrad.client_list); if (retain_mode) - RB_FOREACH(vrf, vrf_name_head, &vrfs_by_name) - { + RB_FOREACH (vrf, vrf_name_head, &vrfs_by_name) { zvrf = vrf->info; if (zvrf) SET_FLAG(zvrf->flags, ZEBRA_VRF_RETAIN); -- cgit v1.2.3