From: Andrea Bolognani Date: Thu, 25 Feb 2016 14:39:25 +0000 (+0100) Subject: hostdev: virHostdevIsPCINetDevice() should return a bool X-Git-Tag: v1.3.3-rc1~184 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5ce91139da9e61d91752c141c486e7cf602896a6;p=thirdparty%2Flibvirt.git hostdev: virHostdevIsPCINetDevice() should return a bool The only possible return values are true and false, so the return type should be bool instead of int. --- diff --git a/src/util/virhostdev.c b/src/util/virhostdev.c index 3906c4f399..03a78ca4cf 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 &&