]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
cleanup: Change datatype of disk->transient to boolean
authorOsier Yang <jyang@redhat.com>
Wed, 10 Apr 2013 11:01:48 +0000 (19:01 +0800)
committerOsier Yang <jyang@redhat.com>
Thu, 11 Apr 2013 03:36:41 +0000 (11:36 +0800)
src/conf/domain_conf.c
src/conf/domain_conf.h

index 4362716007037b38e512cb25d635ad8f68f45e7f..66a6b65d01bd1f9fa36d0bdc5786b344dae88ee2 100644 (file)
@@ -4641,7 +4641,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 */
index 8173cb4c2b6594b78d5c88a206d81c10f96febb7..878fa1f42c64f4c7c179e9e8200ba9647955cf5f 100644 (file)
@@ -676,7 +676,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;