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
/
fwide.c
diff --git
a/src/stdio/fwide.c
b/src/stdio/fwide.c
index f4da47f6da8ceca422dee4f6c4b1ad45af045ca5..48480685aa4b63a664ccc842548aa8f663c9b662 100644
(file)
--- a/
src/stdio/fwide.c
+++ b/
src/stdio/fwide.c
@@
-5,6
+5,8
@@
int fwide(FILE *f, int mode)
{
- if (!f->mode) f->mode = NORMALIZE(mode);
- return f->mode;
+ FLOCK(f);
+ if (!f->mode) mode = f->mode = NORMALIZE(mode);
+ FUNLOCK(f);
+ return mode;
}