diff options
| author | Richard Henderson | 2021-02-12 19:48:49 +0100 |
|---|---|---|
| committer | Peter Maydell | 2021-02-16 14:02:29 +0100 |
| commit | 09f679b62dffd437446307884597273618004b2c (patch) | |
| tree | 8eed2e8e0d96050bc42e8caae0c41800f978d2d1 /plugins/plugin.h | |
| parent | linux-user: Move lock_user et al out of line (diff) | |
| download | qemu-09f679b62dffd437446307884597273618004b2c.tar.gz qemu-09f679b62dffd437446307884597273618004b2c.tar.xz qemu-09f679b62dffd437446307884597273618004b2c.zip | |
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 <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20210212184902.1251044-19-richard.henderson@linaro.org
[PMM: moved fix for ifdef error to previous commit]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'plugins/plugin.h')
0 files changed, 0 insertions, 0 deletions
