[libvirt] [PATCH 12/24] hostdev: virHostdevIsPCINetDevice() should return a bool

Andrea Bolognani abologna at redhat.com
Mon Mar 7 17:24:28 UTC 2016


The only possible return values are true and false, so the return
type should be bool instead of int.
---
 src/util/virhostdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util/virhostdev.c b/src/util/virhostdev.c
index f08502b..d3e15b7 100644
--- a/src/util/virhostdev.c
+++ b/src/util/virhostdev.c
@@ -354,7 +354,7 @@ virHostdevNetDevice(virDomainHostdevDefPtr hostdev, char **linkdev,
 }
 
 
-static int
+static bool
 virHostdevIsPCINetDevice(virDomainHostdevDefPtr hostdev)
 {
     return hostdev->mode == VIR_DOMAIN_HOSTDEV_MODE_SUBSYS &&
-- 
2.5.0




More information about the libvir-list mailing list