diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 6ee575f78f..e9c97d0c63 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -8679,9 +8679,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 47143d43d8..8f35f6e528 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -1440,7 +1440,7 @@ struct _virDomainRedirFilterUsbDevDef { int vendor; int product; int version; - unsigned int allow :1; + bool allow; }; struct _virDomainRedirFilterDef {