diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2012-10-31 16:34:35 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-11-14 18:19:21 +0100 |
commit | 8c82e9a4331bad42dfc01158fbd1e8f4c2f1c957 (patch) | |
tree | bcac45de073d84ed5cea2b50c52df4b643dc7911 /qemu-aio.h | |
parent | a9660664fde89ef2c7bc629eda547a48b288fbb9 (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.h | 2 |
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; |