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
/
__lockfile.c
diff --git
a/src/stdio/__lockfile.c
b/src/stdio/__lockfile.c
index 6ebf6202bf189284b8d9a02d153259842a29a0cc..3bf3c26bb86ea2cb9cfef4701bf5cf9599fdaa5e 100644
(file)
--- a/
src/stdio/__lockfile.c
+++ b/
src/stdio/__lockfile.c
@@
-8,7
+8,7
@@
int __lockfile(FILE *f)
return 0;
while ((owner = a_cas(&f->lock, 0, tid)))
__wait(&f->lock, &f->waiters, owner, 1);
- return
f->lockcount =
1;
+ return 1;
}
void __unlockfile(FILE *f)