Merge branch 'libaio/actual_min_algo_update' of https://github.com/dpronin/fio
[fio.git] / iolog.c
diff --git a/iolog.c b/iolog.c
index ea7796320d889d3e5310165d153f8077579938de..cc2cbc65ef9b4079db84fdb1b9a4838986b7d37c 100644 (file)
--- a/iolog.c
+++ b/iolog.c
@@ -1875,9 +1875,7 @@ void td_writeout_logs(struct thread_data *td, bool unit_logs)
 
 void fio_writeout_logs(bool unit_logs)
 {
-       struct thread_data *td;
-       int i;
-
-       for_each_td(td, i)
+       for_each_td(td) {
                td_writeout_logs(td, unit_logs);
+       } end_for_each();
 }