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:
45db187
)
fd-util: add some (void) casts
author
Lennart Poettering
<lennart@poettering.net>
Fri, 22 Dec 2017 12:03:35 +0000
(13:03 +0100)
committer
Sven Eden
<yamakuzure@gmx.net>
Wed, 30 May 2018 05:49:42 +0000
(07:49 +0200)
src/basic/fd-util.c
patch
|
blob
|
history
diff --git
a/src/basic/fd-util.c
b/src/basic/fd-util.c
index 7fb99feb35c106a78efffe773836ee3ed1738a5e..c694f434606923c78829e6946ec65caa6eb266c4 100644
(file)
--- a/
src/basic/fd-util.c
+++ b/
src/basic/fd-util.c
@@
-194,9
+194,9
@@
int fd_cloexec(int fd, bool cloexec) {
}
void stdio_unset_cloexec(void) {
- fd_cloexec(STDIN_FILENO, false);
- fd_cloexec(STDOUT_FILENO, false);
- fd_cloexec(STDERR_FILENO, false);
+
(void)
fd_cloexec(STDIN_FILENO, false);
+
(void)
fd_cloexec(STDOUT_FILENO, false);
+
(void)
fd_cloexec(STDERR_FILENO, false);
}
_pure_ static bool fd_in_set(int fd, const int fdset[], unsigned n_fdset) {