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
1 changed files with 2 additions and 2 deletions

View 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;