diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-06-19 01:12:36 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-06-19 01:12:36 -0400 |
commit | ca8a4e7fbdeeb05b58ac3d456bae696623b8e312 (patch) | |
tree | e03be9b8879df04ebdbea362ad41284a8d2f6171 /src/stdio | |
parent | 2499cd9d9be0ba74e16a6c3dd304e6d69070be35 (diff) | |
download | musl-ca8a4e7fbdeeb05b58ac3d456bae696623b8e312.tar.gz musl-ca8a4e7fbdeeb05b58ac3d456bae696623b8e312.tar.xz musl-ca8a4e7fbdeeb05b58ac3d456bae696623b8e312.zip |
minor cleanup in fflush
Diffstat (limited to 'src/stdio')
-rw-r--r-- | src/stdio/fflush.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/stdio/fflush.c b/src/stdio/fflush.c index 715c1d10..af709503 100644 --- 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(); |