about summary refs log tree commit diff
path: root/src/stdio/__toread.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/__toread.c')
-rw-r--r--src/stdio/__toread.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/stdio/__toread.c b/src/stdio/__toread.c
index 2e804f64..52624f3d 100644
--- a/src/stdio/__toread.c
+++ b/src/stdio/__toread.c
@@ -13,12 +13,9 @@ int __toread(FILE *f)
 	return 0;
 }
 
-static const int dummy = 0;
-weak_alias(dummy, __towrite_used);
+void __stdio_exit_needed(void);
 
-void __stdio_exit(void);
-
-void __seek_on_exit()
+void __toread_needs_stdio_exit()
 {
-	if (!__towrite_used) __stdio_exit();
+	__stdio_exit_needed();
 }