]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: conf: Improve virConfGet*() logic
authorAndrea Bolognani <abologna@redhat.com>
Fri, 15 Jul 2016 15:07:38 +0000 (17:07 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 18 Jul 2016 13:49:57 +0000 (15:49 +0200)
commit3742cec81b533fa188458b19bb4fcfb930c225bc
treeef7c0e6e57ccf9b1ccaf512ebfe94fa8517a691d
parentac3ba19135e59fee31f3d129aee9e87ee3e64629
util: conf: Improve virConfGet*() logic

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