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

2016-07-18 Thread Daniel P. Berrange
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 +

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

2016-07-15 Thread Andrea Bolognani
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(-) diff