projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix indention with spaces in powerpc asm
[oweals/musl.git]
/
src
/
stdio
/
fputc.c
diff --git
a/src/stdio/fputc.c
b/src/stdio/fputc.c
index 98d0a20aca814bddf897c8049aff06af9c4cf75e..92762c98f8ccf28312140d0df717441483e15e79 100644
(file)
--- a/
src/stdio/fputc.c
+++ b/
src/stdio/fputc.c
@@
-2,10
+2,9
@@
int fputc(int c, FILE *f)
{
- FLOCK(f);
+ if (f->lock < 0 || !__lockfile(f))
+ return putc_unlocked(c, f);
c = putc_unlocked(c, f);
-
FUNLOCK
(f);
+
__unlockfile
(f);
return c;
}
-
-weak_alias(fputc, putc);