]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virCPUDefParseXML: Prefer virXMLPropUInt over virXPathUInt
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 21 Sep 2021 14:26:48 +0000 (16:26 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 1 Oct 2021 08:52:35 +0000 (10:52 +0200)
commitc7d7cae5ccc1653032b732b4cf2f08382c5a661f
tree36fa2767d2f1a7408f87a843b8f81201c746abd6
parent97fbb7e7e8ad0ced344742cb994f2d0dfa707a29
virCPUDefParseXML: Prefer virXMLPropUInt over virXPathUInt

When parsing CPU topology, which is described in <topology/>
attributes we can use virXMLPropUInt() instead of virXPathUInt()
as the former results in shorter code.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/conf/cpu_conf.c