summaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-11-19 16:35:26 +0100
committerLennart Poettering <lennart@poettering.net>2025-01-06 09:54:41 +0100
commit92d78966fd604d818fba86e65ef6693983178acd (patch)
tree23edc13f76e05f8ec96bc9f14605e9176c953445 /src/test
parentsocket-util: introduce getpeerpidref() (diff)
downloadsystemd-92d78966fd604d818fba86e65ef6693983178acd.tar.xz
systemd-92d78966fd604d818fba86e65ef6693983178acd.zip
cgroup-util: add pidref counterparts for cg_pid_get_session() + cg_pid_get_owner_uid()
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-cgroup-util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-cgroup-util.c b/src/test/test-cgroup-util.c
index 1d8f99cc6e..9fa3ddf9d1 100644
--- a/src/test/test-cgroup-util.c
+++ b/src/test/test-cgroup-util.c
@@ -212,8 +212,8 @@ TEST(proc) {
cg_pid_get_path(SYSTEMD_CGROUP_CONTROLLER, pid.pid, &path);
cg_pid_get_path_shifted(pid.pid, NULL, &path_shifted);
- cg_pid_get_owner_uid(pid.pid, &uid);
- cg_pid_get_session(pid.pid, &session);
+ cg_pidref_get_owner_uid(&pid, &uid);
+ cg_pidref_get_session(&pid, &session);
cg_pid_get_unit(pid.pid, &unit);
cg_pid_get_user_unit(pid.pid, &user_unit);
cg_pid_get_machine_name(pid.pid, &machine);