ddir is of type enum fio_ddir
authorJens Axboe <jens.axboe@oracle.com>
Mon, 23 Jul 2007 09:25:39 +0000 (11:25 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 23 Jul 2007 09:25:39 +0000 (11:25 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
log.c

diff --git a/log.c b/log.c
index 92bcebfcca5248961b3bf1dfa74f3240199c5089..ba5d75bf2a54701b2435a5992e468849512490b3 100644 (file)
--- 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;
 {
        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;
        char *fname, *act;
        char *str, *p;
+       enum fio_ddir rw;
 
        free_release_files(td);
 
 
        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;
                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) {
                if (bytes > td->o.max_bs[rw])
                        td->o.max_bs[rw] = bytes;
                if (rw == DDIR_INVAL) {