]> Git Repo - qemu.git/commit
linux-user: Fix types in uaccess.c
authorRichard Henderson <[email protected]>
Fri, 12 Feb 2021 18:48:49 +0000 (10:48 -0800)
committerPeter Maydell <[email protected]>
Tue, 16 Feb 2021 13:02:29 +0000 (13:02 +0000)
commit09f679b62dffd437446307884597273618004b2c
tree8eed2e8e0d96050bc42e8caae0c41800f978d2d1
parent687ca797893ca1e8538592f19ac61e9eafd0b899
linux-user: Fix types in uaccess.c

For copy_*_user, only 0 and -TARGET_EFAULT are returned; no need
to involve abi_long.  Use size_t for lengths.  Use bool for the
lock_user copy argument.  Use ssize_t for target_strlen, because
we can't overflow the host memory space.

Reviewed-by: Peter Maydell <[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Message-id: 20210212184902.1251044[email protected]
[PMM: moved fix for ifdef error to previous commit]
Signed-off-by: Peter Maydell <[email protected]>
linux-user/qemu.h
linux-user/uaccess.c
This page took 0.026078 seconds and 4 git commands to generate.