]> git.ipfire.org Git - thirdparty/libvirt.git/commit
phyp: Make generic domain listing functions return -1 in case of error
authorMatthias Bolte <matthias.bolte@googlemail.com>
Fri, 6 Nov 2009 01:15:19 +0000 (02:15 +0100)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Fri, 6 Nov 2009 20:28:49 +0000 (21:28 +0100)
commit4c9afe08e41ed342fa2e34820998798ea32385d0
treeebba2f544f5990f38637008cca380c34a9f285c5
parent8d6a1b2c887732e9074683ead1f29249cd77a40d
phyp: Make generic domain listing functions return -1 in case of error

phypNumDomainsGeneric() and phypListDomainsGeneric() return 0 in case
of an error. This makes it impossible to distinguish between an actual
error and no domains being defined on the hypervisor. It also turn the
no domains situation into an error. Return -1 in case of an error to
fix this problem.
src/phyp/phyp_driver.c