X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fstdio%2F__towrite.c;h=4bf96f4dfb505a9bffa2be928bab02ad62840ef1;hp=b4587419dddbc8585c42ef7126b1a198950aaae2;hb=f753049a50132a23849ef89a8af5ff86ad595c25;hpb=8e8ddeff7eee6294e24c0a9a29053164f990f1b3;ds=sidebyside 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); +}