aboutsummaryrefslogtreecommitdiff
path: root/hurd/hurdsig.c
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2023-02-18 23:37:10 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-02-20 00:33:47 +0100
commit32fff41bde1965ce89af07e27f2fc6dbb5baee89 (patch)
treecdb33e1632a6e1bf6c6732763a93f8b13194f9ec /hurd/hurdsig.c
parente48f33e76be2a3baa920b7e9f472354f7ff0c0a6 (diff)
downloadglibc-32fff41bde1965ce89af07e27f2fc6dbb5baee89.zip
glibc-32fff41bde1965ce89af07e27f2fc6dbb5baee89.tar.gz
glibc-32fff41bde1965ce89af07e27f2fc6dbb5baee89.tar.bz2
hurd: Use proper integer types
Fix a few more cases of build errors caused by mismatched types. This is a continuation of f4315054b46d5e58b44a709a51943fb73f846afb. Signed-off-by: Sergey Bugaev <bugaevc@gmail.com> Message-Id: <20230218203717.373211-3-bugaevc@gmail.com>
Diffstat (limited to 'hurd/hurdsig.c')
-rw-r--r--hurd/hurdsig.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hurd/hurdsig.c b/hurd/hurdsig.c
index 56e8e61..ea79ffb 100644
--- a/hurd/hurdsig.c
+++ b/hurd/hurdsig.c
@@ -430,8 +430,8 @@ _hurdsig_abort_rpcs (struct hurd_sigstate *ss, int signo, int sigthread,
receive completes immediately or aborts. */
abort_thread (ss, state, reply);
- if (state->basic.PC >= (natural_t) &_hurd_intr_rpc_msg_about_to
- && state->basic.PC < (natural_t) &_hurd_intr_rpc_msg_in_trap)
+ if (state->basic.PC >= (uintptr_t) &_hurd_intr_rpc_msg_about_to
+ && state->basic.PC < (uintptr_t) &_hurd_intr_rpc_msg_in_trap)
{
/* The thread is about to do the RPC, but hasn't yet entered
mach_msg. Mutate the thread's state so it knows not to try
@@ -442,7 +442,7 @@ _hurdsig_abort_rpcs (struct hurd_sigstate *ss, int signo, int sigthread,
state->basic.SYSRETURN = MACH_SEND_INTERRUPTED;
*state_change = 1;
}
- else if (state->basic.PC == (natural_t) &_hurd_intr_rpc_msg_in_trap
+ else if (state->basic.PC == (uintptr_t) &_hurd_intr_rpc_msg_in_trap
/* The thread was blocked in the system call. After thread_abort,
the return value register indicates what state the RPC was in
when interrupted. */