summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2015-05-27 15:20:58 +0200
committerDaniel Mack <daniel@zonque.org>2015-05-27 15:20:58 +0200
commita790812cb349c5cef95d1b4a20fc80ca08d3a145 (patch)
tree1d13aa5d99f663eb5085cd80a5b4c4083e689586 /src/login
parentfb91034cf5907bbbabba1e8821b01f3b37aa56d5 (diff)
logind: prefix some calls to unlink with (void)
Make Coverity happy and tell it we're not interested in the return value of these two calls.
Diffstat (limited to 'src/login')
-rw-r--r--src/login/logind-dbus.c2
-rw-r--r--src/login/logind.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c
index 3555bcc2f5..10a9df0961 100644
--- a/src/login/logind-dbus.c
+++ b/src/login/logind-dbus.c
@@ -1965,7 +1965,7 @@ static int method_cancel_scheduled_shutdown(sd_bus_message *message, void *userd
m->scheduled_shutdown_timeout = 0;
if (m->unlink_nologin) {
- unlink("/run/nologin");
+ (void) unlink("/run/nologin");
m->unlink_nologin = false;
}
diff --git a/src/login/logind.c b/src/login/logind.c
index 7520f1345b..5e66cb924e 100644
--- a/src/login/logind.c
+++ b/src/login/logind.c
@@ -170,7 +170,7 @@ static void manager_free(Manager *m) {
udev_unref(m->udev);
if (m->unlink_nologin)
- unlink("/run/nologin");
+ (void) unlink("/run/nologin");
bus_verify_polkit_async_registry_free(m->polkit_registry);