From: Lennart Poettering Date: Mon, 15 Jun 2015 23:55:20 +0000 (+0200) Subject: logind: cast close() call to (void) X-Git-Tag: v226.4~1^2~282 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=f5765a8e9044f87b6acbf9c4fbf4f63553ff0276 logind: cast close() call to (void) --- 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);