summaryrefslogtreecommitdiff
path: root/src/stdio/__towrite.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/__towrite.c')
-rw-r--r--src/stdio/__towrite.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/stdio/__towrite.c b/src/stdio/__towrite.c
index 4bf96f4d..ba67e0df 100644
--- a/src/stdio/__towrite.c
+++ b/src/stdio/__towrite.c
@@ -17,8 +17,9 @@ int __towrite(FILE *f)
return 0;
}
-/* Link flush-on-exit code iff any stdio write functions are linked. */
-void __fflush_on_exit()
+const int __towrite_used = 1;
+
+void __flush_on_exit()
{
- fflush(0);
+ __stdio_exit();
}