chiark / gitweb /
__thread --> thread_local for C11 compat
[elogind.git] / src / shared / cgroup-util.c
index 2c2ffc589879ead8b7f04c2cf31bcff833d428cb..309f65d03eefc0cff9c046db035883565b9fdcc9 100644 (file)
@@ -480,7 +480,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);