diff options
author | Amit Shah <amit.shah@redhat.com> | 2012-11-29 15:44:44 +0530 |
---|---|---|
committer | Amit Shah <amit.shah@redhat.com> | 2012-12-13 15:56:19 +0530 |
commit | c3587ca1a25862628e06cc019f91e7b2dcef40bf (patch) | |
tree | bc2028afaf5f3312e079291bc17f70d030e30d79 /hw/virtio-serial-bus.c | |
parent | 1c97e303d4ea80a2691334b0febe87a50660f99d (diff) |
virtio-serial: use uint32_t to count ports
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Diffstat (limited to 'hw/virtio-serial-bus.c')
-rw-r--r-- | hw/virtio-serial-bus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/virtio-serial-bus.c b/hw/virtio-serial-bus.c index 155da58dcd..30f450cd61 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; |