From: Roman Bogorodskiy Date: Sat, 25 Mar 2017 13:12:42 +0000 (+0400) Subject: virpci: fix build on non-Linux X-Git-Tag: v3.2.0-rc1~135 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27a59a923040a813d0916692c81ec6847bcbfe81;p=thirdparty%2Flibvirt.git virpci: fix build on non-Linux virPCIGetDeviceAddressFromSysfsLink() should return virPCIDeviceAddressPtr, so return NULL in the stub instead of "-1". --- diff --git a/src/util/virpci.c b/src/util/virpci.c index 546aeb550e..65c108f2e5 100644 --- a/src/util/virpci.c +++ b/src/util/virpci.c @@ -2945,7 +2945,7 @@ virPCIDeviceAddressPtr virPCIGetDeviceAddressFromSysfsLink(const char *device_link ATTRIBUTE_UNUSED) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported)); - return -1; + return NULL; }