X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fstdio%2Ffgetc.c;h=da6386842f99fc869d244f3c0b9e71c3465910ef;hp=3a7f1e304850f46c5076577750126eb8fe20354d;hb=e3cd6c5c265cd481db6e0c5b529855d99f0bda30;hpb=ea343364a719add2cd8adf8a50c15bb5f9400dd8 diff --git a/src/stdio/fgetc.c b/src/stdio/fgetc.c index 3a7f1e30..da638684 100644 --- a/src/stdio/fgetc.c +++ b/src/stdio/fgetc.c @@ -4,7 +4,9 @@ int fgetc(FILE *f) { int c; FLOCK(f); - c = f->rpos < f->rstop ? *f->rpos++ : __uflow(f); + c = getc_unlocked(f); FUNLOCK(f); return c; } + +weak_alias(fgetc, getc);