memory: Make flatview_cb return bool, not int
commitd1e8cf77f1739018b792ddc6b377b509fbf8e7c8
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 18 Mar 2021 17:48:19 +0000 (18 17:48 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 23 Mar 2021 11:47:31 +0000 (23 11:47 +0000)
treefc019b881855d6819fc0442aeee468409e77b261
parente6fa978d8343ec7cf20b9c8b2dcb390646242457
memory: Make flatview_cb return bool, not int

The return value of the flatview_cb callback passed to the
flatview_for_each_range() function is zero if the iteration through
the ranges should continue, or non-zero to break out of it.  Use a
bool for this rather than int.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20210318174823.18066-2-peter.maydell@linaro.org
include/exec/memory.h
tests/qtest/fuzz/generic_fuzz.c