cleanup: Change datatype of disk->transient to boolean

This commit is contained in:
Osier Yang 2013-04-10 19:01:48 +08:00
parent a29bafd5de
commit 71dae03f9b
2 changed files with 2 additions and 2 deletions

View 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 */

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