aboutsummaryrefslogtreecommitdiff
path: root/qemu-aio.h
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2012-10-31 16:34:35 +0100
committerKevin Wolf <kwolf@redhat.com>2012-11-14 18:19:21 +0100
commit8c82e9a4331bad42dfc01158fbd1e8f4c2f1c957 (patch)
treebcac45de073d84ed5cea2b50c52df4b643dc7911 /qemu-aio.h
parenta9660664fde89ef2c7bc629eda547a48b288fbb9 (diff)
aio: switch aiocb_size type int -> size_t
Using appropriate types for variables is a good thing :). All users simply do sizeof(MyType) and the value is passed to a memory allocator, it should be size_t. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-aio.h')
-rw-r--r--qemu-aio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-aio.h b/qemu-aio.h
index 1b7eb6ef5b..111b0b3f0a 100644
--- a/qemu-aio.h
+++ b/qemu-aio.h
@@ -23,7 +23,7 @@ typedef void BlockDriverCompletionFunc(void *opaque, int ret);
typedef struct AIOPool {
void (*cancel)(BlockDriverAIOCB *acb);
- int aiocb_size;
+ size_t aiocb_size;
BlockDriverAIOCB *free_aiocb;
} AIOPool;