commit | 06f7d23b78350e34c95f97b7cf386152ee370b31 | [log] [tgz] |
---|---|---|
author | Peter Maydell <peter.maydell@linaro.org> | Mon Mar 20 17:39:17 2017 +0000 |
committer | Peter Maydell <peter.maydell@linaro.org> | Mon Mar 20 17:39:17 2017 +0000 |
tree | 10a551bb8850eac2fb8a632ece02af44caa749c1 | |
parent | 55104bfb884ebf3c350833837b4523ed21a5e129 [diff] |
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. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>