]> xenbits.xensource.com Git - libvirt.git/commit
conf,qemu: Use type-aware switches where possible
authorAndrea Bolognani <abologna@redhat.com>
Wed, 8 Nov 2017 14:55:16 +0000 (15:55 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 20 Nov 2017 09:14:44 +0000 (10:14 +0100)
commit18dfc0014501c3811ee32669ea96583131dca9b3
treedd80fd3f74b17e497798c469fcd3f0cd3bf04458
parent593639ffffa43f52aae53038bc8bd75ec700b12f
conf,qemu: Use type-aware switches where possible

The compiler can warn us if we add a value to the
virDomainChrSerialTargetType enumeration but forget to handle
it properly in the code. Let's take advantage of that.

This commit is best viewed with 'git diff -w'.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/conf/domain_conf.c
src/qemu/qemu_command.c