X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2F__toread.c;h=52624f3d4f2370edbbd8d40a418ee48d06b4a98d;hb=c463e11eda8326aacee2ac1d516954a9574a2dcd;hp=2e804f641dbd8a2363f88c4c08696e1f89627d08;hpb=781f26bc92b0710ac025fae3be42f5575468f1a5;p=musl 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(); }