]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
path-util: avoid name clashes
authorLennart Poettering <lennart@poettering.net>
Wed, 13 Jun 2018 15:37:53 +0000 (17:37 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 20 Jul 2018 14:57:35 +0000 (16:57 +0200)
One of those days we should rework this to use the UNIQ macros, but for
now, an underscore should be enough.

src/basic/path-util.h

index 8277c6b9165a8f830164dc37e2ed1b415a862460..49604eab800728358d3caa0437870eb3e1dbab6c 100644 (file)
@@ -58,10 +58,10 @@ static inline bool path_equal_ptr(const char *a, const char *b) {
 /* Note: the search terminates on the first NULL item. */
 #define PATH_IN_SET(p, ...)                                     \
         ({                                                      \
-                char **s;                                       \
+                char **_s;                                      \
                 bool _found = false;                            \
-                STRV_FOREACH(s, STRV_MAKE(__VA_ARGS__))         \
-                        if (path_equal(p, *s)) {                \
+                STRV_FOREACH(_s, STRV_MAKE(__VA_ARGS__))        \
+                        if (path_equal(p, *_s)) {               \
                                _found = true;                   \
                                break;                           \
                         }                                       \