]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virCapabilitiesAllocMachines: Use NULL-terminated list as argument and return count
authorPeter Krempa <pkrempa@redhat.com>
Fri, 17 Mar 2023 13:12:11 +0000 (14:12 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 3 Apr 2023 07:19:07 +0000 (09:19 +0200)
commitccee1ee088e0fc08855c794f66a0d2328901a7f8
tree2e84aadf48d6b54b1fa16c332dc786cd0f9efef5
parentdca563b296ab7479db898b033cce2563b61d8327
virCapabilitiesAllocMachines: Use NULL-terminated list as argument and return count

Simplify use of the function by determining the number of elements
inside the function.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/capabilities.c
src/conf/capabilities.h
src/libxl/libxl_capabilities.c
tests/testutilsqemu.c
tests/testutilsxen.c