cgroup-util: drop 'controller' argument from cg_path_open()

Nowadays it always takes SYSTEMD_CGROUP_CONTROLLER as controller.
Let's drop it.

No functional change, just refactoring.
This commit is contained in:
Yu Watanabe
2025-11-17 21:30:29 +09:00
parent 4dbf06bd85
commit 6475926a59
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -511,7 +511,7 @@ TEST(cgroupid) {
if (cg_is_available() <= 0)
return (void) log_tests_skipped("cgroupfs v2 is not mounted");
fd = cg_path_open(SYSTEMD_CGROUP_CONTROLLER, "/");
fd = cg_path_open("/");
ASSERT_OK(fd);
ASSERT_OK(fd_get_path(fd, &p));