diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2014-01-14 12:20:25 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2014-01-14 12:20:25 -0500 |
commit | b8ed8b124aaff754e244dff6930b36c192fa69e0 (patch) | |
tree | c6d7caf75d42584eaf0227332d6c43ecc76d7565 /src/libudev/cgroup-util.c | |
parent | fd98dfdcb889c74c84a00e54e8094f9c91387c6a (diff) |
src/libudev: bring in line with upstream
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/libudev/cgroup-util.c')
-rw-r--r-- | src/libudev/cgroup-util.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libudev/cgroup-util.c b/src/libudev/cgroup-util.c index 71bd529ad2..af6ce959c1 100644 --- a/src/libudev/cgroup-util.c +++ b/src/libudev/cgroup-util.c @@ -198,7 +198,7 @@ static int join_path(const char *controller, const char *path, const char *suffi int cg_get_path(const char *controller, const char *path, const char *suffix, char **fs) { const char *p; - static __thread bool good = false; + static thread_local bool good = false; assert(fs); @@ -223,9 +223,7 @@ int cg_get_path(const char *controller, const char *path, const char *suffix, ch #define CONTROLLER_VALID \ - "0123456789" \ - "abcdefghijklmnopqrstuvwxyz" \ - "ABCDEFGHIJKLMNOPQRSTUVWXYZ" \ + DIGITS LETTERS \ "_" bool cg_controller_is_valid(const char *p, bool allow_named) { |