]> git.proxmox.com Git - mirror_qemu.git/commit - bsd-user/mmap.c
bsd-user/mmap.c: check pread's return value to fix warnings with _FORTIFY_SOURCE
authorMikaël Urankar <mikael.urankar@gmail.com>
Thu, 16 Sep 2021 23:45:05 +0000 (17:45 -0600)
committerWarner Losh <imp@bsdimp.com>
Sun, 17 Oct 2021 22:55:52 +0000 (16:55 -0600)
commit26778ac3da794f29c2c7c7d473f0a8d77b874392
tree7e3d6394b6afdda1cc007139be73823b403788a3
parent948516a3fac0bdd47eb127fe1a86148ed86d5c65
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>
bsd-user/mmap.c