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 --- pimd/pim_instance.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pimd/pim_instance.c') diff --git a/pimd/pim_instance.c b/pimd/pim_instance.c index 5a59342947..42feae3361 100644 --- a/pimd/pim_instance.c +++ b/pimd/pim_instance.c @@ -192,8 +192,7 @@ static int pim_vrf_config_write(struct vty *vty) struct vrf *vrf; struct pim_instance *pim; - RB_FOREACH(vrf, vrf_name_head, &vrfs_by_name) - { + RB_FOREACH (vrf, vrf_name_head, &vrfs_by_name) { pim = vrf->info; if (!pim) -- cgit v1.2.3