From patchwork Wed Nov 14 18:47:08 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [07/26] aio: switch aiocb_size type int -> size_t Date: Wed, 14 Nov 2012 08:47:08 -0000 From: Kevin Wolf X-Patchwork-Id: 198991 Message-Id: <1352918847-3696-8-git-send-email-kwolf@redhat.com> To: anthony@codemonkey.ws Cc: kwolf@redhat.com, qemu-devel@nongnu.org From: Stefan Hajnoczi 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 files changed, 1 insertions(+), 1 deletions(-) diff --git a/qemu-aio.h b/qemu-aio.h index 1b7eb6e..111b0b3 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;