X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2F__towrite.c;h=4c9c66ae79c9e8c5abe8750df8ebfce149b1e061;hb=e1a51185ceb4386481491e11f6dd39569b9e54f7;hp=380ea396a133ca81ba230b2e45186aed5da2775f;hpb=8e26a591d059382cd28b96e457ede2fe07c550c7;p=musl diff --git a/src/stdio/__towrite.c b/src/stdio/__towrite.c index 380ea396..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,11 +17,7 @@ int __towrite(FILE *f) return 0; } -const int __towrite_used = 1; - -void __stdio_exit(void); - -void __flush_on_exit() +hidden void __towrite_needs_stdio_exit() { - __stdio_exit(); + __stdio_exit_needed(); }