logind: cast close() call to (void)

This commit is contained in:
Lennart Poettering 2015-06-16 01:55:20 +02:00
parent 5febf10c1c
commit 4fba57963b

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