From: Jens Axboe Date: Wed, 16 Aug 2006 13:17:21 +0000 (+0200) Subject: [PATCH] libaio returns long, not int X-Git-Tag: fio-1.6~2 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=34e95e3b07f44da3bad86e8d5253f4ff71871221;hp=30521453f2f1913657c30874dcc1c18abff7a46d [PATCH] libaio returns long, not int --- diff --git a/ioengines.c b/ioengines.c index fe6136f7..a78088dd 100644 --- a/ioengines.c +++ b/ioengines.c @@ -87,7 +87,7 @@ static int fio_libaio_getevents(struct thread_data *td, int min, int max, struct timespec *t) { struct libaio_data *ld = td->io_data; - int r; + long r; do { r = io_getevents(ld->aio_ctx, min, max, ld->aio_events, t); @@ -100,14 +100,14 @@ static int fio_libaio_getevents(struct thread_data *td, int min, int max, break; } while (1); - return r; + return (int) r; } static int fio_libaio_queue(struct thread_data *td, struct io_u *io_u) { struct libaio_data *ld = td->io_data; struct iocb *iocb = &io_u->iocb; - int ret; + long ret; do { ret = io_submit(ld->aio_ctx, 1, &iocb); @@ -121,7 +121,7 @@ static int fio_libaio_queue(struct thread_data *td, struct io_u *io_u) break; } while (1); - return ret; + return (int) ret; }