]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virDomainControllerDefParseXML: Remove explicit checks for negative value
authorPeter Krempa <pkrempa@redhat.com>
Fri, 26 Aug 2022 11:47:09 +0000 (13:47 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 1 Sep 2022 11:11:10 +0000 (13:11 +0200)
commit2486284c8c558897be7e22f5d78fbe0dddcf358f
tree49977b9f4829a5f6cd36978d682e9a656a6228e3
parent318e5e3bac9fb1d7b84a0d3c78231aa557568f0a
virDomainControllerDefParseXML: Remove explicit checks for negative value

Refactor all cases which use virXMLPropInt and then subsequently check
that the parsed value is not '-1'/negative by using the VIR_XML_PROP_NONNEGATIVE
flag for virXMLPropInt.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/domain_conf.c