Re: [PATCH 2/4] Add API for loading daemon config from in-memory blob

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

 



On 04/04/2012 08:07 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
> 
> ---

Sparse on the commit message; even mentioning the name of the new API
will help a later 'git log' search for the introduction of the new name.

>  daemon/libvirtd-config.c |   67 +++++++++++++++++++++++++++++++--------------
>  daemon/libvirtd-config.h |    9 ++++--
>  daemon/libvirtd.c        |    2 +-
>  3 files changed, 53 insertions(+), 25 deletions(-)
> 

> -
> -    conf = virConfReadFile (filename, 0);

Bad style (space in function call) here...

>  
> -    virConfFree (conf);
>      return 0;
>  
>  error:
> -    virConfFree (conf);

and here...


> +
> +    conf = virConfReadFile(filename, 0);

but while you fixed it here...

> +    if (!conf)
> +        return -1;
> +
> +    ret = daemonConfigLoadOptions(data, filename, conf);
> +    virConfFree (conf);

...you missed here.

ACK with that nit fixed.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-919-301-3266
Libvirt virtualization library http://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]