From 53fa9b69d69b4d108cb132d7186b3f623eb22389 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 23 Jul 2007 11:25:39 +0200 Subject: [PATCH] ddir is of type enum fio_ddir Signed-off-by: Jens Axboe --- log.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/log.c b/log.c index 92bcebfc..ba5d75bf 100644 --- a/log.c +++ b/log.c @@ -173,9 +173,10 @@ static int read_iolog2(struct thread_data *td, FILE *f) { unsigned long long offset; unsigned int bytes; - int rw, reads, writes, fileno = 0, file_action = 0; /* stupid gcc */ + int reads, writes, fileno = 0, file_action = 0; /* stupid gcc */ char *fname, *act; char *str, *p; + enum fio_ddir rw; free_release_files(td); @@ -246,7 +247,7 @@ static int read_iolog2(struct thread_data *td, FILE *f) INIT_LIST_HEAD(&ipo->list); ipo->offset = offset; ipo->len = bytes; - ipo->ddir = (enum fio_ddir) rw; + ipo->ddir = rw; if (bytes > td->o.max_bs[rw]) td->o.max_bs[rw] = bytes; if (rw == DDIR_INVAL) { -- 2.25.1