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:
Michal Privoznik 2023-09-18 15:46:21 +02:00
parent 57570b741c
commit 83cb91ae3c

View File

@ -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;
}