mirror of
https://github.com/systemd/systemd.git
synced 2025-08-30 05:49:54 +03:00
logind: cast close() call to (void)
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user