1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-01-12 13:17:58 +03:00

cleanup: Change datatype of hostdev->missing to boolean

This commit is contained in:
Osier Yang 2013-04-10 18:46:56 +08:00
parent cc7da958c8
commit 1bbc1e7524
3 changed files with 3 additions and 3 deletions

View File

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

View File

@ -207,7 +207,7 @@ virLXCFindHostdevUSBDevice(virDomainHostdevDefPtr hostdev,
out:
if (!*usb)
hostdev->missing = 1;
hostdev->missing = true;
return 0;
}

View File

@ -739,7 +739,7 @@ qemuFindHostdevUSBDevice(virDomainHostdevDefPtr hostdev,
out:
if (!*usb)
hostdev->missing = 1;
hostdev->missing = true;
return 0;
}