From: Jens Axboe Date: Tue, 11 Dec 2007 12:23:27 +0000 (+0100) Subject: unsigned vs signed warnings X-Git-Tag: fio-1.17.3~20 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=a3cc770d09992e7823879fc167057a52ecbfddef unsigned vs signed warnings Signed-off-by: Jens Axboe --- diff --git a/engines/posixaio.c b/engines/posixaio.c index 65a88e90..c352a7ad 100644 --- a/engines/posixaio.c +++ b/engines/posixaio.c @@ -82,7 +82,8 @@ static int fio_posixaio_getevents(struct thread_data *td, unsigned int min, struct posixaio_data *pd = td->io_ops->data; struct list_head *entry; struct timespec start; - int r, have_timeout = 0; + int have_timeout = 0; + unsigned int r; if (t && !fill_timespec(&start)) have_timeout = 1; diff --git a/engines/syslet-rw.c b/engines/syslet-rw.c index b3102ec3..ab64054b 100644 --- a/engines/syslet-rw.c +++ b/engines/syslet-rw.c @@ -108,8 +108,10 @@ static int fio_syslet_getevents(struct thread_data *td, unsigned int min, /* * While we have less events than requested, block waiting for them + * (if we have to, there may already be more completed events ready + * for us - see fio_syslet_wait_for_events() */ - while (sd->nr_events < (unsigned int) min) + while (sd->nr_events < min) fio_syslet_wait_for_events(td); ret = sd->nr_events;