]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virQEMUBuildDriveCommandlineFromJSON: Open-code in callers
authorPeter Krempa <pkrempa@redhat.com>
Wed, 24 Mar 2021 13:00:07 +0000 (14:00 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 12 Oct 2021 08:26:00 +0000 (10:26 +0200)
commit803d3f2ca0005a685d5045549eb1732518d3c3d7
treee93cd1e26d6618160c4c169103e6931d267d2c26
parent424dc5d2d20191d357db12d161ab04804c1883ef
virQEMUBuildDriveCommandlineFromJSON: Open-code in callers

Optimize the number of string copies by using the virBuffers in the
callers directly. Simplest way to achieve this is to just open code the
one function call 'virQEMUBuildDriveCommandlineFromJSON' was wrapping
in the two callers.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/libvirt_private.syms
src/qemu/qemu_command.c
src/util/virqemu.c
src/util/virqemu.h