unsigned vs signed warnings
authorJens Axboe <jens.axboe@oracle.com>
Tue, 11 Dec 2007 12:23:27 +0000 (13:23 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 11 Dec 2007 12:23:27 +0000 (13:23 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
engines/posixaio.c
engines/syslet-rw.c

index 65a88e90756ceeb6b8640a99aff46d752abd0a80..c352a7ad852bd77bc15c197b003573f3a5e147f6 100644 (file)
@@ -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;
index b3102ec3b78a035a16b5250e98236630d9614e2b..ab64054b9c5b7fd39c05067778878436f4db4bc5 100644 (file)
@@ -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;