]> xenbits.xensource.com Git - libvirt.git/commitdiff
hostdev: virHostdevIsPCINetDevice() should return a bool
authorAndrea Bolognani <abologna@redhat.com>
Thu, 25 Feb 2016 14:39:25 +0000 (15:39 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 14 Mar 2016 13:55:47 +0000 (14:55 +0100)
The only possible return values are true and false, so the return
type should be bool instead of int.

src/util/virhostdev.c

index 3906c4f3997f000fc10a33390e5f549b8c1a8a54..03a78ca4cf70462ea8f02446d3301a199a0a457f 100644 (file)
@@ -354,7 +354,7 @@ virHostdevNetDevice(virDomainHostdevDefPtr hostdev, char **linkdev,
 }
 
 
-static int
+static bool
 virHostdevIsPCINetDevice(virDomainHostdevDefPtr hostdev)
 {
     return hostdev->mode == VIR_DOMAIN_HOSTDEV_MODE_SUBSYS &&