From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:57203) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tj6BH-0000Wa-HT for qemu-devel@nongnu.org; Thu, 13 Dec 2012 05:38:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tj6BE-0001Oe-1q for qemu-devel@nongnu.org; Thu, 13 Dec 2012 05:38:19 -0500 Received: from mx1.redhat.com ([209.132.183.28]:32887) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tj6BD-0001OW-59 for qemu-devel@nongnu.org; Thu, 13 Dec 2012 05:38:15 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qBDAcETI003053 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 13 Dec 2012 05:38:14 -0500 From: Amit Shah Date: Thu, 13 Dec 2012 16:07:53 +0530 Message-Id: In-Reply-To: References: In-Reply-To: References: Subject: [Qemu-devel] [PATCH 1/4] virtio-serial: use uint32_t to count ports List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alon Levy Cc: Amit Shah , qemu list Signed-off-by: Amit Shah --- hw/virtio-serial-bus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/virtio-serial-bus.c b/hw/virtio-serial-bus.c index 155da58..30f450c 100644 --- a/hw/virtio-serial-bus.c +++ b/hw/virtio-serial-bus.c @@ -56,7 +56,7 @@ struct VirtIOSerial { struct { QEMUTimer *timer; - int nr_active_ports; + uint32_t nr_active_ports; struct { VirtIOSerialPort *port; uint8_t host_connected; @@ -637,7 +637,7 @@ static void virtio_serial_save(QEMUFile *f, void *opaque) static void virtio_serial_post_load_timer_cb(void *opaque) { - int i; + uint32_t i; VirtIOSerial *s = opaque; VirtIOSerialPort *port; uint8_t host_connected; -- 1.8.0.2