]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Explicitly cast some switch parameters to enum
authorMartin Kletzander <mkletzan@redhat.com>
Fri, 7 Mar 2014 16:21:51 +0000 (17:21 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 18 Mar 2014 11:17:06 +0000 (12:17 +0100)
commit2bc468275d131b7bb714649620dfea0bebdf657f
treea4d993a69bf2aad2914ad61dc8eda402e2b34ae8
parentcc9c62fef97fc989ad01fcfdd0759450fa8f442b
Explicitly cast some switch parameters to enum

This patch is not trying to fix every switch, just the ones I worked
with last time, because some of these were especially unreadable.
Covers enums virDomainGraphicsType and virDomainChrType (where
applicable).

Also sort its cases by their value.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/conf/domain_conf.c
src/qemu/qemu_command.c