mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 14:45:24 +00: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:
parent
00fa136d0b
commit
44178b8e80
@ -2298,7 +2298,7 @@ virGetSCSIHostNumber(const char *adapter_name ATTRIBUTE_UNUSED,
|
|||||||
unsigned int *result ATTRIBUTE_UNUSED)
|
unsigned int *result ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
virReportSystemError(ENOSYS, "%s", _("Not supported on this platform"));
|
virReportSystemError(ENOSYS, "%s", _("Not supported on this platform"));
|
||||||
return NULL;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *
|
char *
|
||||||
|
Loading…
Reference in New Issue
Block a user