From: Roman Bogorodskiy Date: Wed, 29 Oct 2014 18:20:48 +0000 (+0300) Subject: virutil: fix virGetSCSIHostNumber stub return type X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=44178b8e80facf0a48ab1a49dc8da3010c830930;p=libvirt.git virutil: fix virGetSCSIHostNumber stub return type The virGetSCSIHostNumber function return type is int, however its stubbed version returns NULL. That results in a build fail on systems that use the stubbed version. Fix by using a proper return type. --- diff --git a/src/util/virutil.c b/src/util/virutil.c index 3e7f7a2ad0..1116fda01b 100644 --- a/src/util/virutil.c +++ b/src/util/virutil.c @@ -2298,7 +2298,7 @@ virGetSCSIHostNumber(const char *adapter_name ATTRIBUTE_UNUSED, unsigned int *result ATTRIBUTE_UNUSED) { virReportSystemError(ENOSYS, "%s", _("Not supported on this platform")); - return NULL; + return -1; } char *