X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=log.c;h=ba5d75bf2a54701b2435a5992e468849512490b3;hp=92bcebfcca5248961b3bf1dfa74f3240199c5089;hb=53fa9b69d69b4d108cb132d7186b3f623eb22389;hpb=b3f4b4f51e05b019ee9e5fddb9232975cf15ce93 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) {