On 04/28/2018 09:41 AM, Max Reitz wrote:
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 <mre...@redhat.com>
---
  include/qemu-io.h |   6 +-
  qemu-io-cmds.c    | 294 +++++++++++++++++++++++++-----------------------------
  qemu-io.c         |  36 +++----
  3 files changed, 157 insertions(+), 179 deletions(-)


Reviewed-by: Eric Blake <ebl...@redhat.com>

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

Reply via email to