X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Ffgetc.c;h=2578afccd28ac8f75e8bb470e99ca74015cb75f2;hb=1d5750b95c06913a1f18a995481276d698d20fae;hp=4d8aca371d895603653e1d06ca53c2a1f2ce726a;hpb=dba68bf98fc708cea4c478278c889fc7ad802b00;p=musl diff --git a/src/stdio/fgetc.c b/src/stdio/fgetc.c index 4d8aca37..2578afcc 100644 --- a/src/stdio/fgetc.c +++ b/src/stdio/fgetc.c @@ -1,13 +1,7 @@ -#include "stdio_impl.h" +#include +#include "getc.h" int fgetc(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(fgetc, getc);