chiark / gitweb /
logind: cast close() call to (void)
authorLennart Poettering <lennart@poettering.net>
Mon, 15 Jun 2015 23:55:20 +0000 (01:55 +0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 09:03:02 +0000 (10:03 +0100)
src/login/logind-button.c

index 610adc5..8079d0b 100644 (file)
@@ -70,7 +70,7 @@ void button_free(Button *b) {
                 /* If the device has been unplugged close() returns
                  * ENODEV, let's ignore this, hence we don't use
                  * safe_close() */
-                close(b->fd);
+                (void) close(b->fd);
         }
 
         free(b->name);