sd-login: fix wrong constructor used in sd_login_monitor manpage example

This commit is contained in:
Jason Francis 2021-04-19 12:16:26 -04:00
parent a8310e39e9
commit 941c5275ea
No known key found for this signature in database
GPG key ID: AE8E6DD1597E1E25

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));