X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fstdio%2Ffputc.c;h=f364ed38ba7471d3ca80f2d21560737eca642042;hb=246f1c811448f37a44b41cd8df8d0ef9736d95f4;hp=99532965c6894f6f52f4b37576ad6e3d2f3c4af2;hpb=6a4b9472fb0a85e55030b37ec3017ba0319e03f9;p=musl diff --git a/src/stdio/fputc.c b/src/stdio/fputc.c index 99532965..f364ed38 100644 --- a/src/stdio/fputc.c +++ b/src/stdio/fputc.c @@ -1,13 +1,7 @@ -#include "stdio_impl.h" +#include +#include "putc.h" int fputc(int c, FILE *f) { - if (f->lock < 0 || !__lockfile(f)) - return putc_unlocked(c, f); - c = putc_unlocked(c, f); - __unlockfile(f); - return c; + return do_putc(c, f); } - -weak_alias(fputc, putc); -weak_alias(fputc, _IO_putc);