[libvirt] [PATCH 22/38] qemu: domain: Use switch statement in qemuDomainPrepareDiskSourceTLS

Ján Tomko jtomko at redhat.com
Wed May 30 17:02:52 UTC 2018


On Wed, May 30, 2018 at 02:41:18PM +0200, Peter Krempa wrote:
>Select protocol using a swtich with all cases enumerated. This will

switch

>simplify checking unsupported protocols and adding new support.
>

It also renames the variable :P

>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> src/qemu/qemu_domain.c | 34 +++++++++++++++++++++++++++++-----
> 1 file changed, 29 insertions(+), 5 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180530/110bb6b1/attachment-0001.sig>


More information about the libvir-list mailing list