From 4f82ae66628a517585d6bef9465662a45481d024 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 28 Aug 2022 13:10:35 +0200 Subject: copyinmsg: Set msgh_size inside copyinmsg rather than the caller In the 32/64 conversion case it is copyinmsg that will know the eventual size. --- include/mach/message.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/mach/message.h b/include/mach/message.h index 0a7297e1..30c07296 100644 --- a/include/mach/message.h +++ b/include/mach/message.h @@ -132,7 +132,7 @@ typedef unsigned int mach_msg_size_t; typedef natural_t mach_msg_seqno_t; typedef integer_t mach_msg_id_t; -typedef struct { +typedef struct mach_msg_header { mach_msg_bits_t msgh_bits; mach_msg_size_t msgh_size; mach_port_t msgh_remote_port; -- cgit v1.2.3