---
src/conf/domain_conf.c | 4 ++--
src/conf/domain_conf.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 70df165..79a116f 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -8557,9 +8557,9 @@ virDomainRedirFilterUsbDevDefParseXML(const xmlNodePtr node)
allow = virXMLPropString(node, "allow");
if (allow) {
if (STREQ(allow, "yes"))
- def->allow = 1;
+ def->allow = true;
else if (STREQ(allow, "no"))
- def->allow = 0;
+ def->allow = false;
else {
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
_("Invalid allow value, either 'yes' or
'no'"));
diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h
index 7088bee..4033e4c 100644
--- a/src/conf/domain_conf.h
+++ b/src/conf/domain_conf.h
@@ -1413,7 +1413,7 @@ struct _virDomainRedirFilterUsbDevDef {
int vendor;
int product;
int version;
- unsigned int allow :1;
+ bool allow;
};
struct _virDomainRedirFilterDef {
--
1.8.1.4