summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Francis <zxzax@protonmail.com>2021-04-19 12:13:03 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-05-06 14:51:07 +0200
commitfa7f835f79d4da8ee6d7403be43a0ba4d24b9fb2 (patch)
treed9bf557c248358c5bad4e0f485abd7975722bf0f
parent277277cbf0386be082555f92b5fce0521fee17b3 (diff)
downloadsystemd-fa7f835f79d4da8ee6d7403be43a0ba4d24b9fb2.tar.gz
sd-login: correct prototype of sd_peer_get_cgroup
(cherry picked from commit a8310e39e996b9b5f63d897879aecf8988261bdb)
-rw-r--r--src/systemd/sd-login.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemd/sd-login.h b/src/systemd/sd-login.h
index 6958d99a1e..d3ad6abef1 100644
--- a/src/systemd/sd-login.h
+++ b/src/systemd/sd-login.h
@@ -110,7 +110,7 @@ int sd_peer_get_machine_name(int fd, char **machine);
/* Similar to sd_pid_get_cgroup(), but retrieves data about the peer
* of a connected AF_UNIX socket. */
-int sd_peer_get_cgroup(pid_t pid, char **cgroup);
+int sd_peer_get_cgroup(int fd, char **cgroup);
/* Get state from UID. Possible states: offline, lingering, online, active, closing */
int sd_uid_get_state(uid_t uid, char **state);