summaryrefslogtreecommitdiff
path: root/src/stdio
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2018-02-24 11:33:18 -0500
committerRich Felker <dalias@aerifal.cx>2018-02-24 11:33:18 -0500
commit52d42b5888c79fd30d7c16c59941f5ef87f745ad (patch)
treeb29a426058b3faa3d831421176a312826d2f4462 /src/stdio
parente7eeeb9f2a4a358fb0bbed81e145ef5538ff60f0 (diff)
downloadmusl-52d42b5888c79fd30d7c16c59941f5ef87f745ad.tar.gz
remove useless and confusing parentheses in stdio __towrite function
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.
Diffstat (limited to 'src/stdio')
-rw-r--r--src/stdio/__towrite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdio/__towrite.c b/src/stdio/__towrite.c
index 0a69d926..b022cbca 100644
--- 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;
}