X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Ffgetc.c;h=2578afccd28ac8f75e8bb470e99ca74015cb75f2;hb=d88e5dfa8b989dafff4b748bfb3cba3512c8482e;hp=3a7f1e304850f46c5076577750126eb8fe20354d;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/stdio/fgetc.c b/src/stdio/fgetc.c index 3a7f1e30..2578afcc 100644 --- a/src/stdio/fgetc.c +++ b/src/stdio/fgetc.c @@ -1,10 +1,7 @@ -#include "stdio_impl.h" +#include +#include "getc.h" int fgetc(FILE *f) { - int c; - FLOCK(f); - c = f->rpos < f->rstop ? *f->rpos++ : __uflow(f); - FUNLOCK(f); - return c; + return do_getc(f); }