mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
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.
This commit is contained in:
1 parent
00fa136d0b
commit
44178b8e80
1 file changed
+1
-1
+1
-1
@@ -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 *
|
||||
|
||||
Reference in new issue
Block a user