On 23.03.2017 15:36, Peter Maydell wrote: > 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.mayd...@linaro.org> > Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org> > Reviewed-by: Jeff Cody <jc...@redhat.com> > --- > v2: add (int) cast to avoid compiler warnings on some > systems when the array is empty; use 'static const'. > --- > block/file-posix.c | 28 ++++++++++++++-------------- > 1 file changed, 14 insertions(+), 14 deletions(-)
Thanks, applied to my block branch for 2.9: https://github.com/XanClic/qemu/commits/block Max
signature.asc
Description: OpenPGP digital signature