projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
implement the 'm' (malloc) modifier for scanf
[musl]
/
src
/
stdio
/
fflush.c
diff --git
a/src/stdio/fflush.c
b/src/stdio/fflush.c
index
715c1d1
..
af70950
100644
(file)
--- a/
src/stdio/fflush.c
+++ b/
src/stdio/fflush.c
@@
-25,7
+25,6
@@
weak_alias(dummy, __stdout_used);
int fflush(FILE *f)
{
int r;
int fflush(FILE *f)
{
int r;
- FILE *next;
if (f) {
FLOCK(f);
if (f) {
FLOCK(f);
@@
-37,12
+36,9
@@
int fflush(FILE *f)
r = __stdout_used ? fflush(__stdout_used) : 0;
OFLLOCK();
r = __stdout_used ? fflush(__stdout_used) : 0;
OFLLOCK();
- for (f=libc.ofl_head; f; f=next) {
+ for (f=libc.ofl_head; f; f=
f->
next) {
FLOCK(f);
FLOCK(f);
- //OFLUNLOCK();
if (f->wpos > f->wbase) r |= __fflush_unlocked(f);
if (f->wpos > f->wbase) r |= __fflush_unlocked(f);
- //OFLLOCK();
- next = f->next;
FUNLOCK(f);
}
OFLUNLOCK();
FUNLOCK(f);
}
OFLUNLOCK();