X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Ffgetc.c;h=2578afccd28ac8f75e8bb470e99ca74015cb75f2;hb=8949da7ab1c0dbf801e8bc78f0c0adc625020f75;hp=da6386842f99fc869d244f3c0b9e71c3465910ef;hpb=e3cd6c5c265cd481db6e0c5b529855d99f0bda30;p=musl diff --git a/src/stdio/fgetc.c b/src/stdio/fgetc.c index da638684..2578afcc 100644 --- a/src/stdio/fgetc.c +++ b/src/stdio/fgetc.c @@ -1,12 +1,7 @@ -#include "stdio_impl.h" +#include +#include "getc.h" int fgetc(FILE *f) { - int c; - FLOCK(f); - c = getc_unlocked(f); - FUNLOCK(f); - return c; + return do_getc(f); } - -weak_alias(fgetc, getc);