X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Fgetc.c;h=8409fc2343fc9060da320ccefe93b394b7801a2b;hb=dd8f02b7dce53d6b1c4282439f1636a2d63bee01;hp=b3f351d1d7e45e5f4ef9ad91c868981e6aaf1929;hpb=8fc7b5965ac6a000c93c7362276a6a7b193647f4;p=musl diff --git a/src/stdio/getc.c b/src/stdio/getc.c index b3f351d1..8409fc23 100644 --- a/src/stdio/getc.c +++ b/src/stdio/getc.c @@ -1,13 +1,9 @@ -#include "stdio_impl.h" +#include +#include "getc.h" int getc(FILE *f) { - int c; - if (f->lock < 0 || !__lockfile(f)) - return getc_unlocked(f); - c = getc_unlocked(f); - __unlockfile(f); - return c; + return do_getc(f); } weak_alias(getc, _IO_getc);