virtio-serial: use uint32_t to count ports
authorAmit Shah <amit.shah@redhat.com>
Thu, 29 Nov 2012 10:14:44 +0000 (15:44 +0530)
committerAmit Shah <amit.shah@redhat.com>
Thu, 13 Dec 2012 10:26:19 +0000 (15:56 +0530)
Signed-off-by: Amit Shah <amit.shah@redhat.com>
hw/virtio-serial-bus.c

index 155da58..30f450c 100644 (file)
@@ -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;