]> xenbits.xensource.com Git - libvirt.git/commit
lib: Almost eliminate use of virTristateBoolTypeFromString()
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 20 Jan 2022 12:58:49 +0000 (13:58 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 21 Jan 2022 15:42:13 +0000 (16:42 +0100)
commit0fe2d8dd335054fae38b46bbbac58a4662e1a1d0
tree0eb8d890abda5f2c8104e972f5ad803efca82267
parent9086ae4facfb91436c1d9e7daec9285156cb4eb8
lib: Almost eliminate use of virTristateBoolTypeFromString()

There are couple of places where virTristateBoolTypeFromString()
is called. Well, the same result can be achieved by
virXMLPropTristateBool() and on fewer lines.

Note there are couple of places left untouched because those
don't care about error reporting and thus are shorter they way
they are now.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
13 files changed:
src/conf/cpu_conf.c
src/conf/domain_conf.c
src/conf/domain_conf.h
src/conf/network_conf.c
src/conf/network_conf.h
src/conf/storage_conf.c
src/conf/storage_source_conf.c
src/conf/storage_source_conf.h
src/conf/virnetworkportdef.c
src/conf/virnetworkportdef.h
src/cpu/cpu_x86.c
src/qemu/qemu_capabilities.c
src/qemu/qemu_domain.c