about summary refs log tree commit diff
path: root/hurd/hurdprio.c
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2023-02-12 14:10:33 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-02-12 15:52:07 +0100
commitf4315054b46d5e58b44a709a51943fb73f846afb (patch)
tree08dd446b613f6549260c17b3060453fa040eb4d8 /hurd/hurdprio.c
parent8a86e7b6a67f21294ada5bf67f3484ae3e134848 (diff)
downloadglibc-f4315054b46d5e58b44a709a51943fb73f846afb.tar.gz
glibc-f4315054b46d5e58b44a709a51943fb73f846afb.tar.xz
glibc-f4315054b46d5e58b44a709a51943fb73f846afb.zip
hurd: Use mach_msg_type_number_t where appropriate
It has been decided that on x86_64, mach_msg_type_number_t stays 32-bit.
Therefore, it's not possible to use mach_msg_type_number_t
interchangeably with size_t, in particular this breaks when a pointer to
a variable is passed to a MIG routine.

Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-Id: <20230212111044.610942-3-bugaevc@gmail.com>
Diffstat (limited to 'hurd/hurdprio.c')
-rw-r--r--hurd/hurdprio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hurd/hurdprio.c b/hurd/hurdprio.c
index dbeb272bdc..954d3987f1 100644
--- a/hurd/hurdprio.c
+++ b/hurd/hurdprio.c
@@ -58,7 +58,7 @@ _hurd_priority_which_map (enum __priority_which which, int who,
 	  int *oldpi = pi;
 	  mach_msg_type_number_t oldpisize = pisize;
 	  char *tw = 0;
-	  size_t twsz = 0;
+	  mach_msg_type_number_t twsz = 0;
 	  err = __USEPORT (PROC, __proc_getprocinfo (port, pids[i],
 						     &pi_flags,
 						     &pi, &pisize,