chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add macro for checking if some flags are set
[elogind.git]
/
src
/
basic
/
copy.c
diff --git
a/src/basic/copy.c
b/src/basic/copy.c
index cd5ad4dfa80846807e9213177feee735cd5644c2..18eea64a991f023f781e45ff2189ab9a83fd1490 100644
(file)
--- a/
src/basic/copy.c
+++ b/
src/basic/copy.c
@@
-81,7
+81,7
@@
static int fd_is_nonblock_pipe(int fd) {
if (flags < 0)
return -errno;
- return
(flags & O_NONBLOCK) == O_NONBLOCK
? FD_IS_NONBLOCKING_PIPE : FD_IS_BLOCKING_PIPE;
+ return
FLAGS_SET(flags, O_NONBLOCK)
? FD_IS_NONBLOCKING_PIPE : FD_IS_BLOCKING_PIPE;
}
int copy_bytes_full(