]> git.ipfire.org Git - thirdparty/libvirt.git/commit
xenconfig: Properly check retval of virDomainGraphicsListenSetAddress
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 10 Feb 2016 08:34:59 +0000 (09:34 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 10 Feb 2016 13:13:41 +0000 (14:13 +0100)
commite01e1e16ef4fa5f48c22ddad7eab3eb291819cc5
tree1fa3466865efd8e09b92005b52fba66eae3dad71
parent5194eb956464b0a7f848e2e0769a0c2dbd3e18be
xenconfig: Properly check retval of virDomainGraphicsListenSetAddress

The function, like others in our code, returns zero on success
and a negative value on error. However, there are two places in
xenconfig source code where we check for non-zero value. While
the function can't currently return a positive value, those
checks look okay, but does not really follow our style.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/xenconfig/xen_sxpr.c