]> git.ipfire.org Git - thirdparty/libvirt.git/commit
lxc: Converting 'if, else' logic into a 'switch, case' v5.1.0-rc1
authorJulio Faracco <jcfaracco@gmail.com>
Mon, 18 Feb 2019 19:09:10 +0000 (16:09 -0300)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 25 Feb 2019 15:41:39 +0000 (10:41 -0500)
commitac62e297dba01acd7aebe3f379a63b32ab617bfd
tree5b79c3fe4cf80f986e5a2adc53270c3c908dadd5
parent087a7c9a88657bb50a1077c351de7948ac1b5cce
lxc: Converting 'if, else' logic into a 'switch, case'

The structure used to handle network entries was based on 'if,else'
conditions. This commit converts this ugly structure into a switch to
clearify each option of the handler.

Signed-off-by: Julio Faracco <jcfaracco@gmail.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/lxc/lxc_native.c
src/lxc/lxc_native.h