X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Ffputc.c;h=f364ed38ba7471d3ca80f2d21560737eca642042;hb=36b72cd6fdfed2cac6b6ff1ed58a96d8265785cf;hp=92762c98f8ccf28312140d0df717441483e15e79;hpb=8fc7b5965ac6a000c93c7362276a6a7b193647f4;p=musl diff --git a/src/stdio/fputc.c b/src/stdio/fputc.c index 92762c98..f364ed38 100644 --- a/src/stdio/fputc.c +++ b/src/stdio/fputc.c @@ -1,10 +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); }