qemu-io: Use bool for command line flags
authorEric Blake <eblake@redhat.com>
Sun, 8 May 2016 03:16:42 +0000 (21:16 -0600)
committerMax Reitz <mreitz@redhat.com>
Thu, 12 May 2016 13:33:24 +0000 (15:33 +0200)
commitdc38852aaa4ac187d8b44201f75fc2835241912d
treee798620f6ed2d3cdadbf6cb5ef9ff3b37977ae0e
parentb8d970f1a966b3c46233462879d4d5ab0bdd1712
qemu-io: Use bool for command line flags

We require a C99 compiler; let's use it to express what we
really mean.

(Yes, we now have an instance of 'if (bool + bool + bool > 1)',
which, although semantically valid C, looks ugly; it gets
cleaned up later.)

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 1462677405-4752-4-git-send-email-eblake@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
qemu-io-cmds.c