[libvirt] [PATCH 3/7] qemu: snapshot: Convert if-else switch to switch statement

Eric Blake eblake at redhat.com
Fri Jul 18 22:31:44 UTC 2014


On 07/18/2014 10:11 AM, Peter Krempa wrote:
> 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 | 22 ++++++++++++++++------
>  1 file changed, 16 insertions(+), 6 deletions(-)
> 

ACK.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140718/2cb002e4/attachment-0001.sig>


More information about the libvir-list mailing list