One more fio_ddir fixup
authorJens Axboe <jens.axboe@oracle.com>
Mon, 23 Jul 2007 09:26:27 +0000 (11:26 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 23 Jul 2007 09:26:27 +0000 (11:26 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
log.c

diff --git a/log.c b/log.c
index ba5d75bf2a54701b2435a5992e468849512490b3..cc90f437041dcc6723f673c76b1c9c992d0077ec 100644 (file)
--- a/log.c
+++ b/log.c
@@ -281,7 +281,8 @@ static int read_iolog(struct thread_data *td, FILE *f)
        unsigned long long offset;
        unsigned int bytes;
        char *str, *p;
-       int rw, reads, writes;
+       int reads, writes;
+       enum fio_ddir rw;
 
        /*
         * Read in the read iolog and store it, reuse the infrastructure
@@ -310,7 +311,7 @@ static int read_iolog(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;
                list_add_tail(&ipo->list, &td->io_log_list);