From: Jens Axboe Date: Wed, 21 Feb 2007 15:35:29 +0000 (+0100) Subject: 64-bit compile warnings X-Git-Tag: fio-1.12~44 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=43d768074375795e8d9565ba75cfd00228cc61df 64-bit compile warnings Just some ptr -> int error casts, nothing critical. Signed-off-by: Jens Axboe --- diff --git a/fio.c b/fio.c index 95e06dd8..3191a7d2 100644 --- 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; } /*