[PATCH 3/8] cleanup: Change datatype of hostdev->missing to boolean

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 src/conf/domain_conf.h  | 2 +-
 src/lxc/lxc_hostdev.c   | 2 +-
 src/qemu/qemu_hostdev.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h
index 09ce261..d8c1f6e 100644
--- a/src/conf/domain_conf.h
+++ b/src/conf/domain_conf.h
@@ -443,7 +443,7 @@ struct _virDomainHostdevDef {
     int mode; /* enum virDomainHostdevMode */
     int startupPolicy; /* enum virDomainStartupPolicy */
     bool managed;
-    unsigned int missing : 1;
+    bool missing;
     bool readonly; /* readonly is only used for scsi hostdev */
     union {
         virDomainHostdevSubsys subsys;
diff --git a/src/lxc/lxc_hostdev.c b/src/lxc/lxc_hostdev.c
index 53a1a31..0ce5d05 100644
--- a/src/lxc/lxc_hostdev.c
+++ b/src/lxc/lxc_hostdev.c
@@ -207,7 +207,7 @@ virLXCFindHostdevUSBDevice(virDomainHostdevDefPtr hostdev,
 
 out:
     if (!*usb)
-        hostdev->missing = 1;
+        hostdev->missing = true;
     return 0;
 }
 
diff --git a/src/qemu/qemu_hostdev.c b/src/qemu/qemu_hostdev.c
index bac38b5..0db9ddd 100644
--- a/src/qemu/qemu_hostdev.c
+++ b/src/qemu/qemu_hostdev.c
@@ -739,7 +739,7 @@ qemuFindHostdevUSBDevice(virDomainHostdevDefPtr hostdev,
 
 out:
     if (!*usb)
-        hostdev->missing = 1;
+        hostdev->missing = true;
     return 0;
 }
 
-- 
1.8.1.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]