projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b7a01d
)
aio: fixed a signedness issue that could cause abort on strace
author
Jens Axboe
<jens.axboe@oracle.com>
Tue, 7 Apr 2009 10:51:45 +0000
(12:51 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Tue, 7 Apr 2009 10:51:45 +0000
(12:51 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
engines/libaio.c
patch
|
blob
|
blame
|
history
diff --git
a/engines/libaio.c
b/engines/libaio.c
index 4f1e0ed4b739a3a62cad6322342bf285f75d2190..e452f1ca7c55f630c18c49186ece3f091713d0db 100644
(file)
--- a/
engines/libaio.c
+++ b/
engines/libaio.c
@@
-64,11
+64,11
@@
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;
+
int
r;
do {
r = io_getevents(ld->aio_ctx, min, max, ld->aio_events, t);
- if (r >= min)
+ if (r >=
(int)
min)
break;
else if (r == -EAGAIN) {
usleep(100);