diff options
author | Eric Blake <eblake@redhat.com> | 2016-06-23 16:37:26 -0600 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-07-05 16:46:26 +0200 |
commit | 5411541270f1d9e8eb1fb442fa4908c4398d5d88 (patch) | |
tree | 12d876f78a7e64b1ce98a05795b1f79653e1aa91 /block/iscsi.c | |
parent | 8cc9c6e92bed8459bffaf5a22af8560f2cd8042b (diff) | |
download | qemu-5411541270f1d9e8eb1fb442fa4908c4398d5d88.zip qemu-5411541270f1d9e8eb1fb442fa4908c4398d5d88.tar.gz qemu-5411541270f1d9e8eb1fb442fa4908c4398d5d88.tar.bz2 |
block: Use bool as appropriate for BDS members
Using int for values that are only used as booleans is confusing.
While at it, rearrange a couple of members so that all the bools
are contiguous.
Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/iscsi.c')
-rw-r--r-- | block/iscsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/iscsi.c b/block/iscsi.c index b73fd0a..24f78a7 100644 --- a/block/iscsi.c +++ b/block/iscsi.c @@ -1597,7 +1597,7 @@ static int iscsi_open(BlockDriverState *bs, QDict *options, int flags, * will try to read from the device to guess the image format. */ if (iscsilun->type != TYPE_DISK && iscsilun->type != TYPE_ROM) { - bs->sg = 1; + bs->sg = true; } task = iscsi_do_inquiry(iscsilun->iscsi, iscsilun->lun, 1, |