[PATCH 2/5] virIndexToDiskName: Use g_string_prepend(_c) to improve readability

Eric Blake eblake at redhat.com
Wed Mar 3 16:47:42 UTC 2021


On 3/3/21 4:45 AM, Peter Krempa wrote:
> Use a dynamic string helper so that we don't have to calculate the
> string lenghts and then iterate from the rear.

lengths

> 
> Signed-off-by: Peter Krempa <pkrempa at redhat.com>
> ---
>  src/util/virutil.c | 21 ++++++---------------
>  1 file changed, 6 insertions(+), 15 deletions(-)
> 
-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org




More information about the libvir-list mailing list