oslib-posix: Fix compiler warning
commitafb71303c0eab4505cdd87bd6ff0b852f3bce6a7
authorStefan Weil <sw@weilnetz.de>
Sat, 7 Oct 2017 15:48:27 +0000 (7 17:48 +0200)
committerStefan Weil <sw@weilnetz.de>
Sat, 7 Oct 2017 15:50:56 +0000 (7 17:50 +0200)
treedd0ef28bfab4e5dd578c098af060f2a4eb62d19b
parent12f0a57016665b6bad46328e42c3bf9d8667e746
oslib-posix: Fix compiler warning

gcc warning:

/qemu/util/oslib-posix.c:304:11: error:
 variable ‘addr’ might be clobbered by ‘longjmp’ or ‘vfork’
 [-Werror=clobbered]

Use also an unsigned loop variable which better matches numpages.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
util/oslib-posix.c