From ba474c7844b5e4698b6324b1d1c34cb5baa0e485 Mon Sep 17 00:00:00 2001 From: Osier Yang Date: Wed, 10 Apr 2013 20:15:31 +0800 Subject: [PATCH] cleanup: Change datatype of fs->readonly to boolean --- 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 795739be61..68f024fd2e 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -5396,7 +5396,7 @@ virDomainFSDefParseXML(xmlNodePtr node, xmlStrEqual(cur->name, BAD_CAST "target")) { target = virXMLPropString(cur, "dir"); } else if (xmlStrEqual(cur->name, BAD_CAST "readonly")) { - def->readonly = 1; + def->readonly = true; } else if (!fsdriver && xmlStrEqual(cur->name, BAD_CAST "driver")) { fsdriver = virXMLPropString(cur, "type"); wrpolicy = virXMLPropString(cur, "wrpolicy"); diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index a89aa5d33f..3ab0f15dc1 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -799,7 +799,7 @@ struct _virDomainFSDef { unsigned long long usage; char *src; char *dst; - unsigned int readonly : 1; + bool readonly; virDomainDeviceInfo info; unsigned long long space_hard_limit; /* in bytes */ unsigned long long space_soft_limit; /* in bytes */ -- GitLab