[PATCH 3/4] virDomainVideoDefValidate: Use proper type in virReportEnumRangeError()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The @backend member of _virDomainVideoDef struct is of type
virDomainVideoBackendType. Pass the proper type to
virReportEnumRangeError().

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 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




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux