diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-10-14 23:00:24 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-10-14 23:00:24 -0400 |
commit | f753049a50132a23849ef89a8af5ff86ad595c25 (patch) | |
tree | 5dbc29f298f9907948da2f9451947ebbb7b3e453 /src/stdio | |
parent | 8e8ddeff7eee6294e24c0a9a29053164f990f1b3 (diff) | |
download | musl-f753049a50132a23849ef89a8af5ff86ad595c25.tar.gz musl-f753049a50132a23849ef89a8af5ff86ad595c25.tar.bz2 musl-f753049a50132a23849ef89a8af5ff86ad595c25.tar.xz musl-f753049a50132a23849ef89a8af5ff86ad595c25.zip |
simplify atexit and fflush-on-exit handling
Diffstat (limited to 'src/stdio')
-rw-r--r-- | src/stdio/__towrite.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/stdio/__towrite.c b/src/stdio/__towrite.c index b4587419..4bf96f4d 100644 --- a/src/stdio/__towrite.c +++ b/src/stdio/__towrite.c @@ -18,4 +18,7 @@ int __towrite(FILE *f) } /* Link flush-on-exit code iff any stdio write functions are linked. */ -int (*const __fflush_on_exit)(FILE *) = fflush; +void __fflush_on_exit() +{ + fflush(0); +} |