The @backend member of _virDomainVideoDef struct is of type
virDomainVideoBackendType. Pass the proper type to
virReportEnumRangeError().
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
---
src/conf/domain_validate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/conf/domain_validate.c b/src/conf/domain_validate.c
index e70841c1d6..ac32fa1477 100644
--- a/src/conf/domain_validate.c
+++ b/src/conf/domain_validate.c
@@ -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;
}
--
2.41.0