From 8c82e9a4331bad42dfc01158fbd1e8f4c2f1c957 Mon Sep 17 00:00:00 2001 From: Stefan Hajnoczi Date: Wed, 31 Oct 2012 16:34:35 +0100 Subject: 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 Reviewed-by: Paolo Bonzini Signed-off-by: Kevin Wolf --- qemu-aio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qemu-aio.h') 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; -- cgit v1.2.1