qemu-io: Drop command functions' return values
commitb444d0e9d1ae323fed1ef7c35a359ce064f36b32
authorMax Reitz <mreitz@redhat.com>
Wed, 9 May 2018 19:42:58 +0000 (9 21:42 +0200)
committerMax Reitz <mreitz@redhat.com>
Mon, 11 Jun 2018 14:18:45 +0000 (11 16:18 +0200)
tree05bc2861442e84b2fc4edbaf42f782ab963f3d70
parentb41ad73a3bb972eb43cf52d28669f67ea3fe1762
qemu-io: Drop command functions' return values

For qemu-io, a function returns an integer with two possible values: 0
for "qemu-io may continue execution", or 1 for "qemu-io should exit".
However, there is only a single command that returns 1, and that is
"quit".

So let's turn this case into a global variable instead so we can make
better use of the return value in a later patch.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 20180509194302.21585-2-mreitz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
include/qemu-io.h
qemu-io-cmds.c
qemu-io.c