Re: [PATCH 12/24] qemu: block: Rename qemuBlockFillNodeData and move it to the top

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/26/2017 05:00 AM, Peter Krempa wrote:
> The same operation will become useful in other places so rename the
> function to be more generic and move it to the top so that it can be
> reused earlier in the file.
> ---
>  src/qemu/qemu_block.c | 38 +++++++++++++++++++-------------------
>  1 file changed, 19 insertions(+), 19 deletions(-)

> 
> diff --git a/src/qemu/qemu_block.c b/src/qemu/qemu_block.c
> index 22de70657..3afcbde94 100644
> --- a/src/qemu/qemu_block.c
> +++ b/src/qemu/qemu_block.c
> @@ -27,6 +27,24 @@
>  #define VIR_FROM_THIS VIR_FROM_QEMU
> 
> @@ -419,7 +419,7 @@ qemuBlockGetNodeData(virJSONValuePtr data)
>      if (!(ret = virHashCreate(50, virJSONValueHashFree)))
>          return NULL;
> 
> -    if (virJSONValueArrayForeachSteal(data, qemuBlockFillNodeData, ret) < 0)
> +    if (virJSONValueArrayForeachSteal(data, qemuBlockNamedNodesArrayToHash, ret) < 0)

Long line; worth wrapping?

Reviewed-by: Eric Blake <eblake@xxxxxxxxxx>

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux