From: Lennart Poettering Date: Fri, 15 Mar 2013 15:41:13 +0000 (+0100) Subject: strv: fix STRV_FOREACH_PAIR macro definition X-Git-Tag: v199~195 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=961e4526925b7b1e1d3582f2fc9fb38035e2b5fb strv: fix STRV_FOREACH_PAIR macro definition --- diff --git a/src/shared/strv.h b/src/shared/strv.h index da9fae6ed..49058f8df 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);