From 92fad38a043b75ed6b435b3efa574ede91dbe9ee Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Wed, 11 Jan 2023 23:22:53 -0500 Subject: Use rpc_uintptr_t for protected payloads. Not only is uintptr_t more accurate for what protected payloads are but we also provide compatibility for 64 + 32 bits. Also the use of natural_t in the RPC definition is wrong since it is always 32 bits. Message-Id: --- ipc/mach_port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipc/mach_port.c') diff --git a/ipc/mach_port.c b/ipc/mach_port.c index 1c9cdc97..6edf9f88 100644 --- a/ipc/mach_port.c +++ b/ipc/mach_port.c @@ -1511,7 +1511,7 @@ kern_return_t mach_port_set_protected_payload( ipc_space_t space, mach_port_name_t name, - unsigned long payload) + rpc_uintptr_t payload) { ipc_port_t port; kern_return_t kr; -- cgit v1.2.3