]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: cmdStart: Rewrite ternary operator use to standard if conditions
authorPeter Krempa <pkrempa@redhat.com>
Mon, 28 Feb 2022 13:50:19 +0000 (14:50 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 3 Mar 2022 10:06:56 +0000 (11:06 +0100)
commit38b600166f46e03450d5fa682fc775a43405086d
tree452d05004573e6bc1fa1e1e83ccfc873837e3cf0
parent1cd95f858ab83f2baab0e35070d00766bb06ce3a
virsh: cmdStart: Rewrite ternary operator use to standard if conditions

Rewrite the invocation of the virDomainCreate(WithFiles/Flags) APIs
based on the arguments into if-else instead of (nested) ternary
operators.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tools/virsh-domain.c