projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2499cd9
)
minor cleanup in fflush
author
Rich Felker
<dalias@aerifal.cx>
Tue, 19 Jun 2012 05:12:36 +0000
(
01:12
-0400)
committer
Rich Felker
<dalias@aerifal.cx>
Tue, 19 Jun 2012 05:12:36 +0000
(
01:12
-0400)
src/stdio/fflush.c
patch
|
blob
|
history
diff --git
a/src/stdio/fflush.c
b/src/stdio/fflush.c
index 715c1d10dbed3a310123ea7ea60efb2a9eda64c3..af7095033bca73c25a5488ebc2769207e5483666 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;
- FILE *next;
if (f) {
FLOCK(f);
@@
-37,12
+36,9
@@
int fflush(FILE *f)
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);
- //OFLUNLOCK();
if (f->wpos > f->wbase) r |= __fflush_unlocked(f);
- //OFLLOCK();
- next = f->next;
FUNLOCK(f);
}
OFLUNLOCK();