[systemd-commits] src/shared

Tom Gundersen tomegun at kemper.freedesktop.org
Sat Oct 26 07:41:56 PDT 2013


 src/shared/strv.h |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit ca5c4105733ea439f89b0199cd3f92bc2f2a0b38
Author: Tom Gundersen <teg at jklm.no>
Date:   Sat Oct 26 16:41:22 2013 +0200

    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.

diff --git a/src/shared/strv.h b/src/shared/strv.h
index 571ea38..cccf2e6 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))



More information about the systemd-commits mailing list