]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-login: correct prototype of sd_peer_get_cgroup
authorJason Francis <zxzax@protonmail.com>
Mon, 19 Apr 2021 16:13:03 +0000 (12:13 -0400)
committerJason Francis <zxzax@protonmail.com>
Mon, 19 Apr 2021 16:13:03 +0000 (12:13 -0400)
src/systemd/sd-login.h

index 6958d99a1e8f86d2ee91bc18906ec2d208fbd90a..d3ad6abef12ea05d713a9ab12aee49748027dbec 100644 (file)
@@ -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);