]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
logind: prefix some calls to unlink with (void)
authorDaniel Mack <daniel@zonque.org>
Wed, 27 May 2015 13:20:58 +0000 (15:20 +0200)
committerDaniel Mack <daniel@zonque.org>
Wed, 27 May 2015 13:20:58 +0000 (15:20 +0200)
Make Coverity happy and tell it we're not interested in the return
value of these two calls.

src/login/logind-dbus.c
src/login/logind.c

index 3555bcc2f5c007f19b5d86b7a31ca250cb3359ff..10a9df09613b981031d22c933d870b3aac2294dd 100644 (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;
         }
 
index 7520f1345b7ccd3a4d81f3ea1fb6ee98daf32fa9..5e66cb924e498414e8d35bfc4a408729363b5724 100644 (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);