mirror of
https://github.com/systemd/systemd
synced 2024-09-06 00:41:36 +00:00
sd-login: fix wrong constructor used in sd_login_monitor manpage example
This commit is contained in:
parent
a8310e39e9
commit
941c5275ea
|
@ -115,7 +115,7 @@
|
||||||
__attribute__((cleanup(sd_login_monitor_unrefp))) sd_login_monitor *m = NULL;
|
__attribute__((cleanup(sd_login_monitor_unrefp))) sd_login_monitor *m = NULL;
|
||||||
int r;
|
int r;
|
||||||
…
|
…
|
||||||
r = sd_login_monitor_default(&m);
|
r = sd_login_monitor_new(NULL, &m);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
fprintf(stderr, "Failed to allocate login monitor object: %s\n", strerror(-r));
|
fprintf(stderr, "Failed to allocate login monitor object: %s\n", strerror(-r));
|
||||||
…
|
…
|
||||||
|
|
Loading…
Reference in a new issue