]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virInsertElementsN: Split out actual insertion code
authorPeter Krempa <pkrempa@redhat.com>
Tue, 3 Aug 2021 11:36:56 +0000 (13:36 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 6 Aug 2021 06:53:25 +0000 (08:53 +0200)
commit853fb577d86bcd318c7ac7232f6f34c8deb72467
tree79ebf9abad7f5fda5d74220e7615db58eba85902
parent05b69f3ec4df77c47027aba73b64c9bb2a885e77
virInsertElementsN: Split out actual insertion code

Split out the code doing the movement of the elements and insertion from
the range checks. This will help in adding an error-free version for
appension.

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