strv: fix STRV_FOREACH_PAIR macro definition

This commit is contained in:
Lennart Poettering
2013-03-15 16:49:07 +01:00
parent 8f27a2212e
commit 961e452692
+1 -1
View File
@@ -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);