chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f97a438
)
logind: cast close() call to (void)
author
Lennart Poettering
<lennart@poettering.net>
Mon, 15 Jun 2015 23:55:20 +0000
(
01:55
+0200)
committer
Sven Eden
<yamakuzure@gmx.net>
Tue, 14 Mar 2017 09:03:02 +0000
(10:03 +0100)
src/login/logind-button.c
patch
|
blob
|
history
diff --git
a/src/login/logind-button.c
b/src/login/logind-button.c
index 610adc513e0c6c5f5960bb03baf31d8793907bf3..8079d0b5aa93231341570bfbb1386becae99edf2 100644
(file)
--- 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);