->getevents() should take unsigned args

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/engines/guasi.c b/engines/guasi.c
index 69b2cd2..e0bcaf4 100644
--- a/engines/guasi.c
+++ b/engines/guasi.c
@@ -86,8 +86,8 @@
 	return io_u;
 }
 
-static int fio_guasi_getevents(struct thread_data *td, int min, int max,
-			       struct timespec *t)
+static int fio_guasi_getevents(struct thread_data *td, unsigned int min,
+			       unsigned int max, struct timespec *t)
 {
 	struct guasi_data *ld = td->io_ops->data;
 	int n, r;
diff --git a/engines/libaio.c b/engines/libaio.c
index 8f67711..29eac20 100644
--- a/engines/libaio.c
+++ b/engines/libaio.c
@@ -60,8 +60,8 @@
 	return io_u;
 }
 
-static int fio_libaio_getevents(struct thread_data *td, int min, int max,
-				struct timespec *t)
+static int fio_libaio_getevents(struct thread_data *td, unsigned int min,
+				unsigned int max, struct timespec *t)
 {
 	struct libaio_data *ld = td->io_ops->data;
 	long r;
diff --git a/engines/null.c b/engines/null.c
index bbb4e8a..85d6847 100644
--- a/engines/null.c
+++ b/engines/null.c
@@ -26,8 +26,9 @@
 	return nd->io_us[event];
 }
 
-static int fio_null_getevents(struct thread_data *td, int min_events,
-			      int fio_unused max, struct timespec fio_unused *t)
+static int fio_null_getevents(struct thread_data *td, unsigned int min_events,
+			      unsigned int fio_unused max,
+			      struct timespec fio_unused *t)
 {
 	struct null_data *nd = td->io_ops->data;
 	int ret = 0;
diff --git a/engines/posixaio.c b/engines/posixaio.c
index 9ff05c4..65a88e9 100644
--- a/engines/posixaio.c
+++ b/engines/posixaio.c
@@ -76,8 +76,8 @@
 	return 0;
 }
 
-static int fio_posixaio_getevents(struct thread_data *td, int min, int max,
-				  struct timespec *t)
+static int fio_posixaio_getevents(struct thread_data *td, unsigned int min,
+				  unsigned int max, struct timespec *t)
 {
 	struct posixaio_data *pd = td->io_ops->data;
 	struct list_head *entry;
diff --git a/engines/sg.c b/engines/sg.c
index 790019e..a9ff93a 100644
--- a/engines/sg.c
+++ b/engines/sg.c
@@ -61,8 +61,8 @@
 	return 0;
 }
 
-static int fio_sgio_getevents(struct thread_data *td, int min, int max,
-			      struct timespec fio_unused *t)
+static int fio_sgio_getevents(struct thread_data *td, unsigned int min,
+			      unsigned int max, struct timespec fio_unused *t)
 {
 	struct sgio_data *sd = td->io_ops->data;
 	int left = max, ret, r = 0;
diff --git a/engines/skeleton_external.c b/engines/skeleton_external.c
index 26dbedf..dec258c 100644
--- a/engines/skeleton_external.c
+++ b/engines/skeleton_external.c
@@ -37,8 +37,8 @@
  * which may then be retrieved by calling the ->event() hook with the event
  * numbers. Required.
  */
-static int fio_skeleton_getevents(struct thread_data *td, int min, int max,
-				  struct timespec *t)
+static int fio_skeleton_getevents(struct thread_data *td, unsigned int min,
+				  unsigned int max, struct timespec *t)
 {
 	return 0;
 }
diff --git a/engines/syslet-rw.c b/engines/syslet-rw.c
index e4ccb95..8f2c415 100644
--- a/engines/syslet-rw.c
+++ b/engines/syslet-rw.c
@@ -99,8 +99,8 @@
 	} while (1);
 }
 
-static int fio_syslet_getevents(struct thread_data *td, int min,
-				int fio_unused max,
+static int fio_syslet_getevents(struct thread_data *td, unsigned int min,
+				unsigned int fio_unused max,
 				struct timespec fio_unused *t)
 {
 	struct syslet_data *sd = td->io_ops->data;
diff --git a/fio.h b/fio.h
index 7a0f56d..1b43151 100644
--- a/fio.h
+++ b/fio.h
@@ -883,7 +883,7 @@
 extern int __must_check td_io_prep(struct thread_data *, struct io_u *);
 extern int __must_check td_io_queue(struct thread_data *, struct io_u *);
 extern int __must_check td_io_sync(struct thread_data *, struct fio_file *);
-extern int __must_check td_io_getevents(struct thread_data *, int, int, struct timespec *);
+extern int __must_check td_io_getevents(struct thread_data *, unsigned int, unsigned int, struct timespec *);
 extern int __must_check td_io_commit(struct thread_data *);
 extern int __must_check td_io_open_file(struct thread_data *, struct fio_file *);
 extern void td_io_close_file(struct thread_data *, struct fio_file *);
@@ -920,7 +920,7 @@
 	int (*prep)(struct thread_data *, struct io_u *);
 	int (*queue)(struct thread_data *, struct io_u *);
 	int (*commit)(struct thread_data *);
-	int (*getevents)(struct thread_data *, int, int, struct timespec *);
+	int (*getevents)(struct thread_data *, unsigned int, unsigned int, struct timespec *);
 	struct io_u *(*event)(struct thread_data *, int);
 	int (*cancel)(struct thread_data *, struct io_u *);
 	void (*cleanup)(struct thread_data *);
diff --git a/ioengines.c b/ioengines.c
index d34d2f4..9aacc33 100644
--- a/ioengines.c
+++ b/ioengines.c
@@ -165,7 +165,7 @@
 	return 0;
 }
 
-int td_io_getevents(struct thread_data *td, int min, int max,
+int td_io_getevents(struct thread_data *td, unsigned int min, unsigned int max,
 		    struct timespec *t)
 {
 	if (min > 0 && td->io_ops->commit) {