Przeglądaj źródła

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.
Rich Felker 7 lat temu
rodzic
commit
52d42b5888
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/stdio/__towrite.c

+ 1 - 1
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;
 	}