]> xenbits.xensource.com Git - libvirt.git/commit
qemu: snapshot: Convert if-else switch to switch statement
authorPeter Krempa <pkrempa@redhat.com>
Fri, 18 Jul 2014 13:25:59 +0000 (15:25 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 21 Jul 2014 09:00:11 +0000 (11:00 +0200)
commitaa7e76a5794e8bcc246175551ac8974e612759ff
tree900fad3514f582d8ef47f5f0ce13e95f16b40476
parent29e45ea15a20351794272417e76319acea68873e
qemu: snapshot: Convert if-else switch to switch statement

Convert the target snapshot state selector to a switch statement
enumerating all possible values. This points out a few mistakes in the
original selector.

The logic of the code is preserved until later patches.
src/qemu/qemu_driver.c