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

cleanup: Change datatype of hostdev->missing to boolean

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