logind: cast close() call to (void)
authorLennart Poettering <lennart@poettering.net>
Mon, 15 Jun 2015 23:55:20 +0000 (01:55 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 15 Jun 2015 23:55:20 +0000 (01:55 +0200)
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);