64-bit compile warnings
authorJens Axboe <jens.axboe@oracle.com>
Wed, 21 Feb 2007 15:35:29 +0000 (16:35 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 21 Feb 2007 15:35:29 +0000 (16:35 +0100)
Just some ptr -> int error casts, nothing critical.

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

diff --git a/fio.c b/fio.c
index 95e06dd8e045136ce9954a8e759aef3dac09a7d0..3191a7d21ab31d5e675912856a54fe5ec57b49f0 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -769,7 +769,7 @@ err:
        close_ioengine(td);
        cleanup_io_u(td);
        td_set_runstate(td, TD_EXITED);
-       return (void *) td->error;
+       return (void *) (unsigned long) td->error;
 }
 
 /*
@@ -792,7 +792,7 @@ static int fork_main(int shmid, int offset)
        td = data + offset * sizeof(struct thread_data);
        ret = thread_main(td);
        shmdt(data);
-       return (int) ret;
+       return (int) (unsigned long) ret;
 }
 
 /*