X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=log.c;h=039e74b25e77c5098631b83d1e0fbf16b26b0e27;hp=66b8f5babfe106ba3d7d1a68ab02d393d3467c22;hb=59b9ddfc30c9ff38dfbd071eafe295d9ffdd5f25;hpb=3a6d267d644226983a430cf0f217c27f4c38cd45 diff --git a/log.c b/log.c index 66b8f5ba..039e74b2 100644 --- a/log.c +++ b/log.c @@ -294,7 +294,7 @@ static int read_iolog(struct thread_data *td, FILE *f) unsigned int bytes; char *str, *p; int reads, writes; - enum fio_ddir rw; + int rw; /* * Read in the read iolog and store it, reuse the infrastructure @@ -328,7 +328,7 @@ static int read_iolog(struct thread_data *td, FILE *f) INIT_LIST_HEAD(&ipo->list); ipo->offset = offset; ipo->len = bytes; - ipo->ddir = rw; + ipo->ddir = (enum fio_ddir) rw; if (bytes > td->o.max_bs[rw]) td->o.max_bs[rw] = bytes; list_add_tail(&ipo->list, &td->io_log_list);