]> xenbits.xensource.com Git - libvirt.git/commit
virInsertElementsN: Rename 'add' argument
authorPeter Krempa <pkrempa@redhat.com>
Tue, 3 Aug 2021 11:28:17 +0000 (13:28 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 6 Aug 2021 06:53:25 +0000 (08:53 +0200)
commit05b69f3ec4df77c47027aba73b64c9bb2a885e77
tree8fc0a05c73d2c9517a8a0ef43a940a163baea076
parent73890139bfa248e3a714feb5566144510c3e97dc
virInsertElementsN: Rename 'add' argument

The idea of @add was that the insersion/appension macros would allow
adding more than one element but this feature was never implemented.

'add' is nowadays used as a dummy variable consuming the result of the
VIR_TYPEMATCH compile time check.

Make it obvious that we don't use 'add' by renaming it to
'typematchDummy', marking it as unused and replacing all occurences
where the value was used by literal '1'.

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