提交 9bed84c1 编写于 作者: J Juan Quintela

qdev: qdev_hotplug is really a bool

Signed-off-by: NJuan Quintela <quintela@redhat.com>
Reviewed-by: Nzhanghailiang <zhang.zhanghailiang@huawei.com>
Reviewed-by: NEric Blake <eblake@redhat.com>
Reviewed-by: NPhilippe Mathieu-Daudé <f4bug@amsat.org>
上级 fab35005
......@@ -39,7 +39,7 @@
#include "qapi-event.h"
#include "migration/migration.h"
int qdev_hotplug = 0;
bool qdev_hotplug = false;
static bool qdev_hot_added = false;
static bool qdev_hot_removed = false;
......@@ -385,7 +385,7 @@ void qdev_machine_creation_done(void)
* ok, initial machine setup is done, starting from now we can
* only create hotpluggable devices
*/
qdev_hotplug = 1;
qdev_hotplug = true;
}
bool qdev_machine_modified(void)
......
......@@ -386,7 +386,7 @@ Object *qdev_get_machine(void);
/* FIXME: make this a link<> */
void qdev_set_parent_bus(DeviceState *dev, BusState *bus);
extern int qdev_hotplug;
extern bool qdev_hotplug;
char *qdev_get_dev_path(DeviceState *dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册