summaryrefslogtreecommitdiffstats
path: root/block/commit.c
diff options
context:
space:
mode:
authorPeter Maydell2017-03-23 15:36:28 +0100
committerMax Reitz2017-03-27 17:28:34 +0200
commit700f9ce0f9f49675818ac95c8953cbc65aa1d112 (patch)
treecea7e24f4550df6cd8b930cf42a4a7234973b752 /block/commit.c
parentfile-posix: Make bdrv_flush() failure permanent without O_DIRECT (diff)
downloadqemu-700f9ce0f9f49675818ac95c8953cbc65aa1d112.tar.gz
qemu-700f9ce0f9f49675818ac95c8953cbc65aa1d112.tar.xz
qemu-700f9ce0f9f49675818ac95c8953cbc65aa1d112.zip
block/file-posix.c: Fix unused variable warning on OpenBSD
On OpenBSD none of the ioctls probe_logical_blocksize() tries exist, so the variable sector_size is unused. Refactor the code to avoid this (and reduce the duplicated code). Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Jeff Cody <jcody@redhat.com> Message-id: 1490279788-12995-1-git-send-email-peter.maydell@linaro.org Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'block/commit.c')
0 files changed, 0 insertions, 0 deletions