Merge pull request #19356 from zxzax/sd-login-typos

Fix some typos in sd-login header, docs
This commit is contained in:
Luca Boccassi
2021-04-19 22:26:36 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -115,7 +115,7 @@
__attribute__((cleanup(sd_login_monitor_unrefp))) sd_login_monitor *m = NULL;
int r;
…
r = sd_login_monitor_default(&m);
r = sd_login_monitor_new(NULL, &m);
if (r < 0)
fprintf(stderr, "Failed to allocate login monitor object: %s\n", strerror(-r));
…
+1 -1
View 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);