diff options
author | 2023-07-10 11:11:41 -0400 | |
---|---|---|
committer | 2023-07-10 11:52:35 -0400 | |
commit | 1b3255175804af8743c9b264e4709cd6a3e8f353 (patch) | |
tree | 1921f5c2e80717fb4c803a1e5c58fe1d1dd9001a | |
parent | v2.35 (diff) | |
download | sandbox-1b3255175804af8743c9b264e4709cd6a3e8f353.tar.gz sandbox-1b3255175804af8743c9b264e4709cd6a3e8f353.tar.bz2 sandbox-1b3255175804af8743c9b264e4709cd6a3e8f353.zip |
libsandbox/trace: cast NT_ARM_SYSTEM_CALL to avoid warnings
Bug: https://bugs.gentoo.org/910195
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
(cherry picked from commit 12c24e7f990dec058563ca1ef954bfd8264f2f96)
-rw-r--r-- | libsandbox/trace/linux/aarch64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsandbox/trace/linux/aarch64.c b/libsandbox/trace/linux/aarch64.c index 8f32912..82e829c 100644 --- a/libsandbox/trace/linux/aarch64.c +++ b/libsandbox/trace/linux/aarch64.c @@ -36,7 +36,7 @@ static int trace_get_sysnum(void *vregs) .iov_base = &nr, .iov_len = sizeof(nr), }; - do_ptrace(PTRACE_GETREGSET, NT_ARM_SYSTEM_CALL, &iov_nr); + do_ptrace(PTRACE_GETREGSET, (void *)(uintptr_t)NT_ARM_SYSTEM_CALL, &iov_nr); return nr; } @@ -46,5 +46,5 @@ static void trace_set_sysnum(void *vregs, int nr) .iov_base = &nr, .iov_len = sizeof(nr), }; - do_ptrace(PTRACE_SETREGSET, NT_ARM_SYSTEM_CALL, &iov_nr); + do_ptrace(PTRACE_SETREGSET, (void *)(uintptr_t)NT_ARM_SYSTEM_CALL, &iov_nr); } |