]> xenbits.xensource.com Git - libvirt.git/commit
admin: Check for flags properly
authorMartin Kletzander <mkletzan@redhat.com>
Tue, 1 Mar 2016 14:03:04 +0000 (15:03 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Fri, 11 Mar 2016 11:58:41 +0000 (12:58 +0100)
commitb04e39ff86f925d61261babba1741c8fa4ce5075
treef1ea149bba1b68aecb3fc6d5d312e0b99e5ffe77
parent23a646f8402d3f95673436cdb2a7400977f12963
admin: Check for flags properly

Function virAdmConnectListServers() forgot to check for flags at all,
virAdmConnectOpen() on the other hand checked them but did no dispatch
the error.  virCheckFlags() should be used only when there should be no
other thing done after erroring out and since they are used on different
places then just public API, they cannot dispatch errors.  So let's use
virCheckFlagsGoto instead.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/libvirt-admin.c