提交 c3587ca1 编写于 作者: A Amit Shah

virtio-serial: use uint32_t to count ports

Signed-off-by: NAmit Shah <amit.shah@redhat.com>
上级 1c97e303
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册