提交 1bbc1e75 编写于 作者: O Osier Yang

cleanup: Change datatype of hostdev->missing to boolean

上级 cc7da958
......@@ -436,7 +436,7 @@ struct _virDomainHostdevDef {
int mode; /* enum virDomainHostdevMode */
int startupPolicy; /* enum virDomainStartupPolicy */
bool managed;
unsigned int missing : 1;
bool missing;
union {
virDomainHostdevSubsys subsys;
virDomainHostdevCaps caps;
......
......@@ -207,7 +207,7 @@ virLXCFindHostdevUSBDevice(virDomainHostdevDefPtr hostdev,
out:
if (!*usb)
hostdev->missing = 1;
hostdev->missing = true;
return 0;
}
......
......@@ -739,7 +739,7 @@ qemuFindHostdevUSBDevice(virDomainHostdevDefPtr hostdev,
out:
if (!*usb)
hostdev->missing = 1;
hostdev->missing = true;
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册