[PATCH 6/8] cleanup: Change datatype of disk->transient to boolean

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

 



---
 src/conf/domain_conf.c | 2 +-
 src/conf/domain_conf.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index c595401..753d248 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -4734,7 +4734,7 @@ virDomainDiskDefParseXML(virDomainXMLOptionPtr xmlopt,
             } else if (xmlStrEqual(cur->name, BAD_CAST "shareable")) {
                 def->shared = true;
             } else if (xmlStrEqual(cur->name, BAD_CAST "transient")) {
-                def->transient = 1;
+                def->transient = true;
             } else if ((flags & VIR_DOMAIN_XML_INTERNAL_STATUS) &&
                        xmlStrEqual(cur->name, BAD_CAST "state")) {
                 /* Legacy back-compat. Don't add any more attributes here */
diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h
index 2d66b39..a951996 100644
--- a/src/conf/domain_conf.h
+++ b/src/conf/domain_conf.h
@@ -684,7 +684,7 @@ struct _virDomainDiskDef {
     int startupPolicy; /* enum virDomainStartupPolicy */
     unsigned int readonly : 1;
     bool shared;
-    unsigned int transient : 1;
+    bool transient;
     virDomainDeviceInfo info;
     virStorageEncryptionPtr encryption;
     bool rawio_specified;
-- 
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]