]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: alloc: Reimplement VIR_APPEND_ELEMENT_COPY using virAppendElement
authorPeter Krempa <pkrempa@redhat.com>
Tue, 3 Aug 2021 12:14:20 +0000 (14:14 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 6 Aug 2021 06:53:25 +0000 (08:53 +0200)
commit592517636f653b1c009b92471b95bcb626336653
treefa6ee0b814ef993ffad01536cbe26101ae7cd3d4
parent0215139bc6a570450b180639ac295b71ea2de3a2
util: alloc: Reimplement VIR_APPEND_ELEMENT_COPY using virAppendElement

Use virAppendElement instead of virInsertElementsN to implement
VIR_APPEND_ELEMENT_COPY which allows us to remove error handling as the
only relevant errors were removed when switching to aborting memory
allocation functions.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
12 files changed:
src/conf/domain_conf.c
src/conf/nwfilter_conf.c
src/conf/virnwfilterobj.c
src/cpu/cpu_x86.c
src/logging/log_handler.c
src/openvz/openvz_conf.c
src/qemu/qemu_domain.c
src/qemu/qemu_hotplug.c
src/util/viralloc.h
src/util/virfirewall.c
src/vz/vz_sdk.c
tests/nwfilterxml2firewalltest.c