diff options
author | Mikaël Urankar <mikael.urankar@gmail.com> | 2021-09-16 17:45:05 -0600 |
---|---|---|
committer | Warner Losh <imp@bsdimp.com> | 2021-10-17 16:55:52 -0600 |
commit | 26778ac3da794f29c2c7c7d473f0a8d77b874392 (patch) | |
tree | 7e3d6394b6afdda1cc007139be73823b403788a3 /io | |
parent | 948516a3fac0bdd47eb127fe1a86148ed86d5c65 (diff) | |
download | qemu-26778ac3da794f29c2c7c7d473f0a8d77b874392.zip qemu-26778ac3da794f29c2c7c7d473f0a8d77b874392.tar.gz qemu-26778ac3da794f29c2c7c7d473f0a8d77b874392.tar.bz2 |
bsd-user/mmap.c: check pread's return value to fix warnings with _FORTIFY_SOURCE
Simmilar to the equivalent linux-user: commit fb7e378cf9c, which added
checking to pread's return value. Update to current qemu standards with
{} around the if statement.
Signed-off-by: Mikaël Urankar <mikael.urankar@gmail.com>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Kyle Evans <kevans@FreeBSD.org>
Diffstat (limited to 'io')
0 files changed, 0 insertions, 0 deletions