diff options
author | Sven Eden <yamakuzure@gmx.net> | 2018-03-13 19:12:26 +0100 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-03-26 18:25:53 +0200 |
commit | 7a7db2b7e7fb7e79c14212346aa84c78d22e86a7 (patch) | |
tree | f8ef47cac67b2e9279b816220c083f1960cb1972 /src/core/cgroup.c | |
parent | 5a1765290e87f45b970657cfc8ac1e7ca5c50d6a (diff) |
Prep v236 : Add missing SPDX-License-Identifier (3/9) src/core
Diffstat (limited to 'src/core/cgroup.c')
-rw-r--r-- | src/core/cgroup.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/core/cgroup.c b/src/core/cgroup.c index dd63fda23..da0624e6f 100644 --- a/src/core/cgroup.c +++ b/src/core/cgroup.c @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1+ */ /*** This file is part of systemd. @@ -1974,7 +1975,9 @@ int manager_setup_cgroup(Manager *m) { const char *scope_path; CGroupController c; int r, all_unified; +#if 0 /// UNNEEDED by elogind char *e; +#endif // 0 assert(m); @@ -2005,13 +2008,11 @@ int manager_setup_cgroup(Manager *m) { *e = 0; #endif // 0 - /* And make sure to store away the root value without trailing - * slash, even for the root dir, so that we can easily prepend - * it everywhere. */ - while ((e = endswith(m->cgroup_root, "/"))) - *e = 0; log_debug_elogind("Cgroup Controller \"%s\" -> root \"%s\"", SYSTEMD_CGROUP_CONTROLLER, m->cgroup_root); + /* And make sure to store away the root value without trailing slash, even for the root dir, so that we can + * easily prepend it everywhere. */ + delete_trailing_chars(m->cgroup_root, "/"); /* 2. Show data */ r = cg_get_path(SYSTEMD_CGROUP_CONTROLLER, m->cgroup_root, NULL, &path); |