diff options
| author | Li Qiang | 2018-10-13 10:52:31 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2018-11-05 15:09:54 +0100 |
| commit | 967105651bad6560f54eeb8ba17ac41a9a1f5eb5 (patch) | |
| tree | dd2b7f53de9c40112f4eb5ced6c27516d5dabd87 /include | |
| parent | qcow2: Get the request alignment for encrypted images from QCryptoBlock (diff) | |
| download | qemu-967105651bad6560f54eeb8ba17ac41a9a1f5eb5.tar.gz qemu-967105651bad6560f54eeb8ba17ac41a9a1f5eb5.tar.xz qemu-967105651bad6560f54eeb8ba17ac41a9a1f5eb5.zip | |
block: change some function return type to bool
Signed-off-by: Li Qiang <liq3ea@163.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sysemu/block-backend.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/sysemu/block-backend.h b/include/sysemu/block-backend.h index 830d873f24..c96bcdee14 100644 --- a/include/sysemu/block-backend.h +++ b/include/sysemu/block-backend.h @@ -166,9 +166,9 @@ BlockErrorAction blk_get_error_action(BlockBackend *blk, bool is_read, int error); void blk_error_action(BlockBackend *blk, BlockErrorAction action, bool is_read, int error); -int blk_is_read_only(BlockBackend *blk); -int blk_is_sg(BlockBackend *blk); -int blk_enable_write_cache(BlockBackend *blk); +bool blk_is_read_only(BlockBackend *blk); +bool blk_is_sg(BlockBackend *blk); +bool blk_enable_write_cache(BlockBackend *blk); void blk_set_enable_write_cache(BlockBackend *blk, bool wce); void blk_invalidate_cache(BlockBackend *blk, Error **errp); bool blk_is_inserted(BlockBackend *blk); |
