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.
This commit is contained in:
Daniel Mack 2015-05-27 15:20:58 +02:00
parent fb91034cf5
commit a790812cb3
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

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