From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:34283) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGDVJ-0003ny-HP for qemu-devel@nongnu.org; Mon, 24 Sep 2012 14:35:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TGDVE-0000Er-HX for qemu-devel@nongnu.org; Mon, 24 Sep 2012 14:35:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:4930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGDVE-0000Dv-A7 for qemu-devel@nongnu.org; Mon, 24 Sep 2012 14:35:32 -0400 From: Amit Shah Date: Tue, 25 Sep 2012 00:05:14 +0530 Message-Id: <62a944963063329ffcff01df8ac770f5874e0d1f.1348511596.git.amit.shah@redhat.com> In-Reply-To: References: In-Reply-To: References: Subject: [Qemu-devel] [PATCH RESEND 1/3] virtio: use unsigned int for counting bytes in vq List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu list Cc: Amit Shah , Anthony Liguori , "Michael S. Tsirkin" The virtqueue_avail_bytes() function counts bytes in an int. Use an unsigned int instead. Signed-off-by: Amit Shah --- hw/virtio.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/virtio.c b/hw/virtio.c index 209c763..4c9e20a3 100644 --- a/hw/virtio.c +++ b/hw/virtio.c @@ -338,7 +338,7 @@ static unsigned virtqueue_next_desc(target_phys_addr_t desc_pa, int virtqueue_avail_bytes(VirtQueue *vq, int in_bytes, int out_bytes) { unsigned int idx; - int total_bufs, in_total, out_total; + unsigned int total_bufs, in_total, out_total; idx = vq->last_avail_idx; -- 1.7.7.6