projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7eeeb9
)
remove useless and confusing parentheses in stdio __towrite function
author
Rich Felker
<dalias@aerifal.cx>
Sat, 24 Feb 2018 16:33:18 +0000
(11:33 -0500)
committer
Rich Felker
<dalias@aerifal.cx>
Sat, 24 Feb 2018 16:33:18 +0000
(11:33 -0500)
they seem to be relics of
e3cd6c5c265cd481db6e0c5b529855d99f0bda30
where this code was refactored from a check that previously masked
against (F_ERR|F_NOWR) instead of just F_NOWR.
src/stdio/__towrite.c
patch
|
blob
|
history
diff --git
a/src/stdio/__towrite.c
b/src/stdio/__towrite.c
index 0a69d926dc3c10547a00ae9f7b8517c188078c68..b022cbcacc39358112561a4b8d69db0c590f5ca0 100644
(file)
--- a/
src/stdio/__towrite.c
+++ b/
src/stdio/__towrite.c
@@
-3,7
+3,7
@@
int __towrite(FILE *f)
{
f->mode |= f->mode-1;
- if (f->flags &
(F_NOWR)
) {
+ if (f->flags &
F_NOWR
) {
f->flags |= F_ERR;
return EOF;
}