diff options
Diffstat (limited to 'src/stdio/__lockfile.c')
-rw-r--r-- | src/stdio/__lockfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdio/__lockfile.c b/src/stdio/__lockfile.c index 6ebf6202..3bf3c26b 100644 --- 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) |