aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2023-07-10 11:11:41 -0400
committerMike Gilbert <floppym@gentoo.org>2023-07-10 11:47:36 -0400
commit12c24e7f990dec058563ca1ef954bfd8264f2f96 (patch)
treef2f86d5b081a537b4ac77a1c5faf67d3e9b6c1f0
parentlibsandbox/trace: fix syscall cancellation on arm64 (diff)
downloadsandbox-12c24e7f990dec058563ca1ef954bfd8264f2f96.tar.gz
sandbox-12c24e7f990dec058563ca1ef954bfd8264f2f96.tar.bz2
sandbox-12c24e7f990dec058563ca1ef954bfd8264f2f96.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>
-rw-r--r--libsandbox/trace/linux/aarch64.c4
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);
}