mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-28 13:57:42 +03:00
qemuBuildChrChardevStr: Use proper type for the switch statement
Add the missing cases. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
a6577204d7
commit
876f19c19e
@ -5137,7 +5137,7 @@ qemuBuildChrChardevStr(virLogManager *logManager,
|
||||
if (!(charAlias = qemuAliasChardevFromDevAlias(alias)))
|
||||
return NULL;
|
||||
|
||||
switch (dev->type) {
|
||||
switch ((virDomainChrType) dev->type) {
|
||||
case VIR_DOMAIN_CHR_TYPE_NULL:
|
||||
virBufferAsprintf(&buf, "null,id=%s", charAlias);
|
||||
break;
|
||||
@ -5290,6 +5290,8 @@ qemuBuildChrChardevStr(virLogManager *logManager,
|
||||
dev->data.spiceport.channel);
|
||||
break;
|
||||
|
||||
case VIR_DOMAIN_CHR_TYPE_NMDM:
|
||||
case VIR_DOMAIN_CHR_TYPE_LAST:
|
||||
default:
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
_("unsupported chardev '%s'"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user