]> xenbits.xensource.com Git - libvirt.git/commit
Change return value of VIR_DRV_SUPPORTS_FEATURE to bool
authorJiri Denemark <jdenemar@redhat.com>
Fri, 3 Dec 2010 08:31:48 +0000 (09:31 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 6 Dec 2010 09:09:00 +0000 (10:09 +0100)
commit4186f92935e6bb5057b2db14f47dfd817ab0ab84
tree17992fa8a0f6a59a691483fb916428d8d77e1a83
parentccf2d0847b36f5f172cdb4afbc64b2228ba20cd6
Change return value of VIR_DRV_SUPPORTS_FEATURE to bool

virDrvSupportsFeature API is allowed to return -1 on error while all but
one uses of VIR_DRV_SUPPORTS_FEATURE only check for (non)zero return
value. Let's make this macro return zero on error, which is what
everyone expects anyway.
src/driver.h
src/libvirt.c