[libvirt] [PATCH 2/8] util: conf: Improve virConfGet*() logic

Daniel P. Berrange berrange at redhat.com
Mon Jul 18 08:17:12 UTC 2016


On Fri, Jul 15, 2016 at 07:46:24PM +0200, Andrea Bolognani wrote:
> When parsing numeric values, we always store them as unsigned
> unless they're negative. We can use this fact to simplify the
> logic by removing a bunch of unnecessary checks.
> ---
>  src/util/virconf.c | 40 +++++++++++++---------------------------
>  1 file changed, 13 insertions(+), 27 deletions(-)

ACK


Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvir-list mailing list