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 --- lib/workqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/workqueue.c') diff --git a/lib/workqueue.c b/lib/workqueue.c index b76b73b367..643ed2d2b8 100644 --- a/lib/workqueue.c +++ b/lib/workqueue.c @@ -258,7 +258,7 @@ int work_queue_run(struct thread *thread) if (wq->cycles.granularity == 0) wq->cycles.granularity = WORK_QUEUE_MIN_GRANULARITY; - STAILQ_FOREACH_SAFE(item, &wq->items, wq, titem) { + STAILQ_FOREACH_SAFE (item, &wq->items, wq, titem) { assert(item && item->data); /* dont run items which are past their allowed retries */ -- cgit v1.2.3