X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fstdio%2F__towrite.c;h=4c9c66ae79c9e8c5abe8750df8ebfce149b1e061;hb=0847902ab99065a48f9bd3729b6e676288dfd69e;hp=ba67e0dfc36b9efb3212da277e96a3b05997eb8b;hpb=a71e0af25544fd2486e57ea51c6d05abdbf44c3e;p=musl diff --git a/src/stdio/__towrite.c b/src/stdio/__towrite.c index ba67e0df..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; } -const int __towrite_used = 1; - -void __flush_on_exit() +hidden void __towrite_needs_stdio_exit() { - __stdio_exit(); + __stdio_exit_needed(); }