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
e122416
..
2578afc
100644
(file)
--- a/
src/stdio/fgetc.c
+++ b/
src/stdio/fgetc.c
@@
-1,11
+1,7
@@
-#include "stdio_impl.h"
+#include <stdio.h>
+#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);
}