[libvirt] [PATCH v2 08/14] qemuBuildHostNetStr: Explicitly enumerate net types

John Ferlan jferlan at redhat.com
Thu Oct 13 14:59:21 UTC 2016



On 10/06/2016 09:38 AM, Michal Privoznik wrote:
> We tend to prevent using 'default' in switches. And it is for a
> good reason - control may end up in paths we wouldn't want for
> new values. In this specific case, if qemuBuildHostNetStr is
> called over VIR_DOMAIN_NET_TYPE_VHOSTUSER it would produce
> meaningless output. Fortunately, there no such call yet.
> 
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
>  src/qemu/qemu_command.c | 14 +++++++++++++-
>  1 file changed, 13 insertions(+), 1 deletion(-)
> 

Doesn't seem anything changed from the original patch (which is fine).

Yet another function that doesn't use/need the 'cfg' variable...

ACK to what's here, I'd support removing cfg as well


John




More information about the libvir-list mailing list