]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: be consistent with style of loop exit
authorMichael Chapman <mike@very.puzzling.org>
Wed, 27 Jan 2016 02:24:52 +0000 (13:24 +1100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 1 Feb 2016 17:04:48 +0000 (18:04 +0100)
commit15dee2ef24f2f19f6dcd30d997b81c8a14582361
treef5aa7f0625fd6e0be37e9599c75c9a3b857a8b71
parent704dfd6b0fafe7eafca93a03793389239f8ab869
virsh: be consistent with style of loop exit

When waiting for a block job, the various statuses (COMPLETED, READY,
CANCELED, etc.) should all be treated consistently by having the loop be
exited with "break". Use "goto cleanup" for the error cases only, when
no block job status is available.

Signed-off-by: Michael Chapman <mike@very.puzzling.org>
tools/virsh-domain.c