]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Improve metadata type verification
authorPeter Krempa <pkrempa@redhat.com>
Tue, 8 Jul 2014 13:52:32 +0000 (15:52 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 9 Jul 2014 12:40:31 +0000 (14:40 +0200)
commit3738166603b2ab11ae30061381f378679b767758
tree018f373a39ba9bdf529caf736e8a4312e4263932
parente871ab8862e48485c46177dcfd95da8f945908ae
conf: Improve metadata type verification

Split out checking of invalid metadata type from the switch statement so
that we can use the typecasted enum value to allow tracking addition of
new items by the compliler.

Also avoids two dead-code break statements.
src/conf/domain_conf.c