From: Jens Axboe Date: Mon, 23 Jul 2007 09:26:27 +0000 (+0200) Subject: One more fio_ddir fixup X-Git-Tag: fio-1.17~61 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=21bd2987dc5d82a18af485cd1e7841e94137fc0c One more fio_ddir fixup Signed-off-by: Jens Axboe --- diff --git a/log.c b/log.c index ba5d75bf..cc90f437 100644 --- 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);