Home
last modified time | relevance | path

Searched hist:"700 f9ce0" (Results 1 – 1 of 1) sorted by relevance

/qemu/block/
H A Dfile-posix.c700f9ce0 Thu Mar 23 14:36:28 GMT 2017 Peter Maydell <peter.maydell@linaro.org> 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>