projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
all printf variants: fix argument type handling for %c and %lc
[musl]
/
src
/
stdio
/
fgetc.c
diff --git
a/src/stdio/fgetc.c
b/src/stdio/fgetc.c
index
3a7f1e3
..
2578afc
100644
(file)
--- a/
src/stdio/fgetc.c
+++ b/
src/stdio/fgetc.c
@@
-1,10
+1,7
@@
-#include "stdio_impl.h"
+#include <stdio.h>
+#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);
}