summaryrefslogtreecommitdiff
path: root/lib/ns.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2017-09-15 12:47:35 -0300
committerRenato Westphal <renato@opensourcerouting.org>2017-09-15 14:53:46 -0300
commita2addae8fe172f04f4d8ac99aa123a7d2dd64604 (patch)
treec58663b6654a9bec64ac4c26e11d158fd48b34ad /lib/ns.c
parent461b76e4ed82f3bb3f71499cfb2025959affca9b (diff)
*: 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 <renato@opensourcerouting.org>
Diffstat (limited to 'lib/ns.c')
-rw-r--r--lib/ns.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/ns.c b/lib/ns.c
index ba920e31b9..fdf93d0742 100644
--- a/lib/ns.c
+++ b/lib/ns.c
@@ -378,8 +378,7 @@ static int ns_config_write(struct vty *vty)
struct ns *ns;
int write = 0;
- RB_FOREACH(ns, ns_head, &ns_tree)
- {
+ RB_FOREACH (ns, ns_head, &ns_tree) {
if (ns->ns_id == NS_DEFAULT || ns->name == NULL)
continue;