pointer -> int conversion warning
authorJens Axboe <jens.axboe@oracle.com>
Mon, 12 Mar 2007 12:22:05 +0000 (13:22 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 12 Mar 2007 12:22:05 +0000 (13:22 +0100)
It doesn't matter, but silence the warning.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
init.c

diff --git a/init.c b/init.c
index 4bea304..bbd0675 100644 (file)
--- a/init.c
+++ b/init.c
@@ -827,7 +827,7 @@ static int add_job(struct thread_data *td, const char *jobname, int job_add_num)
        if (td->odirect)
                td->io_ops->flags |= FIO_RAWIO;
 
-       fn_given = (int) td->filename;
+       fn_given = (long) td->filename;
        if (!td->filename)
                td->filename = strdup(jobname);