From f4315054b46d5e58b44a709a51943fb73f846afb Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Sun, 12 Feb 2023 14:10:33 +0300 Subject: 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 Message-Id: <20230212111044.610942-3-bugaevc@gmail.com> --- hurd/lookup-retry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hurd/lookup-retry.c') diff --git a/hurd/lookup-retry.c b/hurd/lookup-retry.c index 0d344026e4..8850c4fd27 100644 --- a/hurd/lookup-retry.c +++ b/hurd/lookup-retry.c @@ -162,7 +162,7 @@ __hurd_file_name_lookup_retry (error_t (*use_init_port) { char buf[1024]; char *trans = buf; - size_t translen = sizeof buf; + mach_msg_type_number_t translen = sizeof buf; err = __file_get_translator (*result, &trans, &translen); if (!err -- cgit 1.4.1