mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-28 03:25:27 +03:00
path-util: avoid name clashes
One of those days we should rework this to use the UNIQ macros, but for now, an underscore should be enough.
This commit is contained in:
parent
ccfc19c960
commit
6b228852bc
@ -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; \
|
||||
} \
|
||||
|
Loading…
Reference in New Issue
Block a user