summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-06-16 01:55:20 +0200
committerSven Eden <yamakuzure@gmx.net>2017-03-14 10:03:02 +0100
commitf5765a8e9044f87b6acbf9c4fbf4f63553ff0276 (patch)
tree352df300fdf706e19d362da5fb493e1ccc701019 /src/login
parentf97a438ab62bd1ea07c4574eac48d7b8fc4d7387 (diff)
logind: cast close() call to (void)
Diffstat (limited to 'src/login')
-rw-r--r--src/login/logind-button.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/logind-button.c b/src/login/logind-button.c
index 610adc513..8079d0b5a 100644
--- a/src/login/logind-button.c
+++ b/src/login/logind-button.c
@@ -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);