From: Jens Axboe Date: Fri, 27 Oct 2006 08:45:12 +0000 (+0200) Subject: [PATCH] libaio sign error X-Git-Tag: fio-1.8~36 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=eaf09db4239ccf364c251d3fa493ef1cb41009cb [PATCH] libaio sign error Signed-off-by: Jens Axboe --- diff --git a/engines/fio-engine-libaio.c b/engines/fio-engine-libaio.c index daee6593..1848dcc4 100644 --- a/engines/fio-engine-libaio.c +++ b/engines/fio-engine-libaio.c @@ -57,7 +57,10 @@ static int fio_libaio_getevents(struct thread_data *td, int min, int max, break; } while (1); - return (int) -r; + if (r < 0) + r = -r; + + return (int) r; } static int fio_libaio_queue(struct thread_data *td, struct io_u *io_u)