OSDN Git Service

linux-user: Fix do_shmat type errors
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 26 Jun 2023 14:02:50 +0000 (16:02 +0200)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 15 Jul 2023 07:02:32 +0000 (08:02 +0100)
commit9b61f77f4001946446d0c7f61ed829a6aefa4c07
tree1a1096e244d3488e8be2edcd82b41ce240f3c65e
parent7a8d9f3a0e882df50681e40f09c29cfb4966ea2d
linux-user: Fix do_shmat type errors

The guest address, raddr, should be unsigned, aka abi_ulong.
The host addresses should be cast via *intptr_t not long.
Drop the inline and fix two other whitespace issues.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Anton Johansson <anjo@rev.ng>
Message-Id: <20230626140250.69572-1-richard.henderson@linaro.org>
linux-user/syscall.c