summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-03-15 16:41:13 +0100
committerLennart Poettering <lennart@poettering.net>2013-03-15 16:49:07 +0100
commit961e4526925b7b1e1d3582f2fc9fb38035e2b5fb (patch)
tree11b7aae3f3d1af9715fd2e282af07986c791a4a0
parent8f27a2212ee8d6311c88ef4358953ad0d7bfa851 (diff)
strv: fix STRV_FOREACH_PAIR macro definition
-rw-r--r--src/shared/strv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/strv.h b/src/shared/strv.h
index da9fae6edb..49058f8df8 100644
--- a/src/shared/strv.h
+++ b/src/shared/strv.h
@@ -77,7 +77,7 @@ bool strv_overlap(char **a, char **b);
for (; (l) && ((s) >= (l)); (s)--)
#define STRV_FOREACH_PAIR(x, y, l) \
- for ((x) = (l), (y) = (x+1); (x) && *(x) && *(y); (x) += 2)
+ for ((x) = (l), (y) = (x+1); (x) && *(x) && *(y); (x) += 2, (y) = (x + 1))
char **strv_sort(char **l);