projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
simplify __stdio_exit static linking logic
[musl]
/
src
/
stdio
/
__toread.c
diff --git
a/src/stdio/__toread.c
b/src/stdio/__toread.c
index
c2ae80f
..
52624f3
100644
(file)
--- a/
src/stdio/__toread.c
+++ b/
src/stdio/__toread.c
@@
-13,10
+13,9
@@
int __toread(FILE *f)
return 0;
}
-static const int dummy = 0;
-weak_alias(dummy, __towrite_used);
+void __stdio_exit_needed(void);
-void __
seek_on
_exit()
+void __
toread_needs_stdio
_exit()
{
-
if (!__towrite_used) __stdio_exit
();
+
__stdio_exit_needed
();
}