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

Peter Krempa pkrempa at redhat.com
Mon Feb 9 13:14:27 UTC 2015


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 <mprivozn at redhat.com>
> ---
>  tools/virsh-domain.c | 15 ++++++++++-----
>  1 file changed, 10 insertions(+), 5 deletions(-)

ACK,

Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20150209/b0cc0004/attachment-0001.sig>


More information about the libvir-list mailing list