]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: alloc: Reimplement VIR_APPEND_ELEMENT_(COPY_)INPLACE 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)
commit0215139bc6a570450b180639ac295b71ea2de3a2
tree0b177516c0333451df1994fb704a004c3f9ffb58
parent51c82458476d82f6ec162e723203324aa4ca535b
util: alloc: Reimplement VIR_APPEND_ELEMENT_(COPY_)INPLACE using virAppendElement

VIR_APPEND_ELEMENT_INPLACE and VIR_APPEND_ELEMENT_COPY_INPLACE already
ignore the return value from 'virInsertElementsN' which allows a trivial
conversion to virAppendElement without the need for 'ignore_value'.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/util/viralloc.h