From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:60067) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTdOR-0000Mp-9N for qemu-devel@nongnu.org; Wed, 31 Oct 2012 14:52:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTdON-00079c-Cf for qemu-devel@nongnu.org; Wed, 31 Oct 2012 14:51:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34602) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTdON-00078p-4L for qemu-devel@nongnu.org; Wed, 31 Oct 2012 14:51:55 -0400 From: Stefan Hajnoczi Date: Wed, 31 Oct 2012 16:34:35 +0100 Message-Id: <1351697677-31598-2-git-send-email-stefanha@redhat.com> In-Reply-To: <1351697677-31598-1-git-send-email-stefanha@redhat.com> References: <1351697677-31598-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PATCH v2 1/3] aio: switch aiocb_size type int -> size_t List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Paolo Bonzini , Anthony Liguori , 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 --- qemu-aio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 1.7.11.7