]> xenbits.xensource.com Git - libvirt.git/commitdiff
virutil: fix virGetSCSIHostNumber stub return type
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Wed, 29 Oct 2014 18:20:48 +0000 (21:20 +0300)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Thu, 30 Oct 2014 05:54:17 +0000 (08:54 +0300)
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.

src/util/virutil.c

index 3e7f7a2ad00f5f5e8082ee359a939cb33193f535..1116fda01b496db614ab7e81e7a4233b7de8a37d 100644 (file)
@@ -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 *