virtio-serial: use uint32_t to count ports

Signed-off-by: Amit Shah <amit.shah@redhat.com>
This commit is contained in:
Amit Shah 2012-11-29 15:44:44 +05:30
parent 1c97e303d4
commit c3587ca1a2

View File

@ -56,7 +56,7 @@ struct VirtIOSerial {
struct { struct {
QEMUTimer *timer; QEMUTimer *timer;
int nr_active_ports; uint32_t nr_active_ports;
struct { struct {
VirtIOSerialPort *port; VirtIOSerialPort *port;
uint8_t host_connected; 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) static void virtio_serial_post_load_timer_cb(void *opaque)
{ {
int i; uint32_t i;
VirtIOSerial *s = opaque; VirtIOSerial *s = opaque;
VirtIOSerialPort *port; VirtIOSerialPort *port;
uint8_t host_connected; uint8_t host_connected;