X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2F__towrite.c;h=4c9c66ae79c9e8c5abe8750df8ebfce149b1e061;hb=e95538fa07d2b460b25ee6c2fef05f820888776d;hp=0a69d926dc3c10547a00ae9f7b8517c188078c68;hpb=c463e11eda8326aacee2ac1d516954a9574a2dcd;p=musl diff --git a/src/stdio/__towrite.c b/src/stdio/__towrite.c index 0a69d926..4c9c66ae 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; } @@ -17,9 +17,7 @@ int __towrite(FILE *f) return 0; } -void __stdio_exit_needed(void); - -void __towrite_needs_stdio_exit() +hidden void __towrite_needs_stdio_exit() { __stdio_exit_needed(); }