summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2013-10-26 16:41:22 +0200
committerTom Gundersen <teg@jklm.no>2013-10-26 16:43:28 +0200
commitca5c4105733ea439f89b0199cd3f92bc2f2a0b38 (patch)
treecfeba9c77b888f44f6400b08dd5cbdabde89831a /src/shared
parent51271a3060e884bbf8bd83ea9689d5176cc9728b (diff)
STRV_FOREACH_BACKWARDS: improve readability a bit
The indentation was wrong, also put the semicolon on a separate line to make it clear it is a for-loop with an epmyt body.
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/strv.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shared/strv.h b/src/shared/strv.h
index 571ea38a7f..cccf2e6a92 100644
--- a/src/shared/strv.h
+++ b/src/shared/strv.h
@@ -75,8 +75,9 @@ bool strv_overlap(char **a, char **b) _pure_;
for ((s) = (l); (s) && *(s); (s)++)
#define STRV_FOREACH_BACKWARDS(s, l) \
- STRV_FOREACH(s, l) ; \
- for ((s)--; (l) && ((s) >= (l)); (s)--)
+ STRV_FOREACH(s, l) \
+ ; \
+ for ((s)--; (l) && ((s) >= (l)); (s)--)
#define STRV_FOREACH_PAIR(x, y, l) \
for ((x) = (l), (y) = (x+1); (x) && *(x) && *(y); (x) += 2, (y) = (x + 1))