mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 01:45:17 +00:00
virDomainCheckpointDefParse: Use 'unsigned int' for flags
Fix the type for a variable holding flags to the usual 'unsigned int' and change the name to be more appropriate to its use. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
parent
d1fd4a3755
commit
9a58f1a53c
@ -157,12 +157,12 @@ virDomainCheckpointDefParse(xmlXPathContextPtr ctxt,
|
||||
def->parent.parent_name = virXPathString("string(./parent/name)", ctxt);
|
||||
|
||||
if ((domainNode = virXPathNode("./domain", ctxt))) {
|
||||
int domainflags = VIR_DOMAIN_DEF_PARSE_INACTIVE |
|
||||
VIR_DOMAIN_DEF_PARSE_SKIP_VALIDATE;
|
||||
unsigned int domainParseFlags = VIR_DOMAIN_DEF_PARSE_INACTIVE |
|
||||
VIR_DOMAIN_DEF_PARSE_SKIP_VALIDATE;
|
||||
|
||||
def->parent.dom = virDomainDefParseNode(ctxt->node->doc, domainNode,
|
||||
xmlopt, parseOpaque,
|
||||
domainflags);
|
||||
domainParseFlags);
|
||||
if (!def->parent.dom)
|
||||
return NULL;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user