From: Lennart Poettering Date: Wed, 18 Oct 2023 08:24:28 +0000 (+0200) Subject: cgroup-util: make cg_pidref_get_path() PidRef parameter const X-Git-Tag: v255-rc1~209^2~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f2a2e60be649949ee5a747328c362829fc6e5e13;p=thirdparty%2Fsystemd.git cgroup-util: make cg_pidref_get_path() PidRef parameter const --- diff --git a/src/basic/cgroup-util.c b/src/basic/cgroup-util.c index 1e518f8ebf8..b9100c5a5cb 100644 --- a/src/basic/cgroup-util.c +++ b/src/basic/cgroup-util.c @@ -809,7 +809,7 @@ int cg_pid_get_path(const char *controller, pid_t pid, char **ret_path) { } } -int cg_pidref_get_path(const char *controller, PidRef *pidref, char **ret_path) { +int cg_pidref_get_path(const char *controller, const PidRef *pidref, char **ret_path) { _cleanup_free_ char *path = NULL; int r; diff --git a/src/basic/cgroup-util.h b/src/basic/cgroup-util.h index 020a6d6bf7c..1d268d8c7ec 100644 --- a/src/basic/cgroup-util.h +++ b/src/basic/cgroup-util.h @@ -204,7 +204,7 @@ int cg_get_path(const char *controller, const char *path, const char *suffix, ch int cg_get_path_and_check(const char *controller, const char *path, const char *suffix, char **ret); int cg_pid_get_path(const char *controller, pid_t pid, char **ret); -int cg_pidref_get_path(const char *controller, PidRef *pidref, char **ret); +int cg_pidref_get_path(const char *controller, const PidRef *pidref, char **ret); int cg_rmdir(const char *controller, const char *path);