]> git.ipfire.org Git - thirdparty/libvirt.git/commit
event-test: Use functions with typecasted switch to convert enums
authorPeter Krempa <pkrempa@redhat.com>
Wed, 13 Apr 2016 15:38:16 +0000 (17:38 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 18 Apr 2016 14:31:27 +0000 (16:31 +0200)
commite1128b3a4c58e0c56658e64f441f08cbee277321
tree2fb0725605ac771bf4f9a794afff01233d91549c
parent2e0f34530bf96d09b6e78737ed7efb234589764d
event-test: Use functions with typecasted switch to convert enums

Arrays would induce crash if a new value was introduced without adding
it here. This could happen for
VIR_DOMAIN_EVENT_DISK_DROP_MISSING_ON_START
examples/object-events/event-test.c