[libvirt] [PATCH 1/3] virsh attach-interface: Use enum instead of arbitrary integers

2015-02-09 Thread Michal Privoznik
The type of interface to attach is held in the variable 'typ'. Depending on interface type selected by user, the variable is set either to 1 (network), or 2 (bridge). Lets use an enum instead. Signed-off-by: Michal Privoznik mpriv...@redhat.com --- tools/virsh-domain.c | 15 ++- 1

Re: [libvirt] [PATCH 1/3] virsh attach-interface: Use enum instead of arbitrary integers

2015-02-09 Thread Peter Krempa
On Mon, Feb 09, 2015 at 10:58:28 +0100, Michal Privoznik wrote: The type of interface to attach is held in the variable 'typ'. Depending on interface type selected by user, the variable is set either to 1 (network), or 2 (bridge). Lets use an enum instead. Signed-off-by: Michal Privoznik