From 12c24e7f990dec058563ca1ef954bfd8264f2f96 Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Mon, 10 Jul 2023 11:11:41 -0400 Subject: libsandbox/trace: cast NT_ARM_SYSTEM_CALL to avoid warnings Bug: https://bugs.gentoo.org/910195 Signed-off-by: Mike Gilbert --- libsandbox/trace/linux/aarch64.c | 4 ++-- 1 file 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); } -- cgit v1.2.3-65-gdbad