提交 52d42b58 编写于 作者: R Rich Felker

remove useless and confusing parentheses in stdio __towrite function

they seem to be relics of e3cd6c5c
where this code was refactored from a check that previously masked
against (F_ERR|F_NOWR) instead of just F_NOWR.
上级 e7eeeb9f
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册