X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2F__towrite.c;h=ba67e0dfc36b9efb3212da277e96a3b05997eb8b;hb=839bff64a17c1ecaed60feefd9b63554ca9cbad6;hp=b4587419dddbc8585c42ef7126b1a198950aaae2;hpb=e3cd6c5c265cd481db6e0c5b529855d99f0bda30;p=musl diff --git a/src/stdio/__towrite.c b/src/stdio/__towrite.c index b4587419..ba67e0df 100644 --- a/src/stdio/__towrite.c +++ b/src/stdio/__towrite.c @@ -17,5 +17,9 @@ int __towrite(FILE *f) return 0; } -/* Link flush-on-exit code iff any stdio write functions are linked. */ -int (*const __fflush_on_exit)(FILE *) = fflush; +const int __towrite_used = 1; + +void __flush_on_exit() +{ + __stdio_exit(); +}