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:
parent
cc7da958c8
commit
1bbc1e7524
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user