mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
virDomainVideoDefValidate: Use proper type in virReportEnumRangeError()
The @backend member of _virDomainVideoDef struct is of type virDomainVideoBackendType. Pass the proper type to virReportEnumRangeError(). Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
57570b741c
commit
83cb91ae3c
@ -181,7 +181,7 @@ virDomainVideoDefValidate(const virDomainVideoDef *video,
|
||||
break;
|
||||
case VIR_DOMAIN_VIDEO_BACKEND_TYPE_LAST:
|
||||
default:
|
||||
virReportEnumRangeError(virDomainInputType, video->backend);
|
||||
virReportEnumRangeError(virDomainVideoBackendType, video->backend);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user