mirror of
git://git.musl-libc.org/musl
synced 2025-01-31 19:11:32 +00:00
remove useless and confusing parentheses in stdio __towrite function
they seem to be relics of e3cd6c5c26
where this code was refactored from a check that previously masked
against (F_ERR|F_NOWR) instead of just F_NOWR.
This commit is contained in:
parent
e7eeeb9f2a
commit
52d42b5888
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user