diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2017-09-15 17:47:35 +0200 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2017-09-15 19:53:46 +0200 |
commit | a2addae8fe172f04f4d8ac99aa123a7d2dd64604 (patch) | |
tree | c58663b6654a9bec64ac4c26e11d158fd48b34ad /tools/start-stop-daemon.c | |
parent | Merge pull request #1178 from donaldsharp/pim_obfuscation (diff) | |
download | frr-a2addae8fe172f04f4d8ac99aa123a7d2dd64604.tar.xz frr-a2addae8fe172f04f4d8ac99aa123a7d2dd64604.zip |
*: 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 'tools/start-stop-daemon.c')
-rw-r--r-- | tools/start-stop-daemon.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/start-stop-daemon.c b/tools/start-stop-daemon.c index 39527eca7..30dc6484a 100644 --- a/tools/start-stop-daemon.c +++ b/tools/start-stop-daemon.c @@ -280,8 +280,7 @@ static void set_namespaces() struct namespace *namespace; int fd; - LIST_FOREACH(namespace, &namespace_head, list) - { + LIST_FOREACH (namespace, &namespace_head, list) { if ((fd = open(namespace->path, O_RDONLY)) == -1) fatal("open namespace %s: %s", namespace->path, strerror(errno)); |