X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=t%2Fbtrace2fio.c;fp=t%2Fbtrace2fio.c;h=32dda92e858be105a4fc641c961600901f8c499c;hp=baf29acb9d41a9434ec028f8212f8842f6ff7972;hb=8a1db9a16e1075498e5d6166fa46b419cecd8af8;hpb=d6b72507e72d3f2ed334fa5665880b0ab59dbfdd diff --git a/t/btrace2fio.c b/t/btrace2fio.c index baf29acb..32dda92e 100644 --- a/t/btrace2fio.c +++ b/t/btrace2fio.c @@ -450,7 +450,7 @@ static struct btrace_pid *pid_hash_get(pid_t pid) * Load a blktrace file by reading all the blk_io_trace entries, and storing * them as io_pieces like the fio text version would do. */ -static int load_blktrace(const char *filename, int need_swap) +static int load_blktrace(const char *fname, int need_swap) { struct btrace_pid *p; unsigned long traces; @@ -458,7 +458,7 @@ static int load_blktrace(const char *filename, int need_swap) struct fifo *fifo; int fd, ret = 0; - fd = open(filename, O_RDONLY); + fd = open(fname, O_RDONLY); if (fd < 0) { perror("open trace file\n"); return 1; @@ -468,8 +468,7 @@ static int load_blktrace(const char *filename, int need_swap) traces = 0; do { - int ret = trace_fifo_get(fifo, fd, &t, sizeof(t)); - + ret = trace_fifo_get(fifo, fd, &t, sizeof(t)); if (ret < 0) goto err; else if (!ret)