aboutsummaryrefslogtreecommitdiff
path: root/mach
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-12-03 02:06:29 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-12-03 02:06:29 +0100
commitd776a59723b22192d33557d2127e13cb31905382 (patch)
tree5de81a6cd03af51f8eff0d257b60150a0d55f9ce /mach
parent3e85650423e47bf87104add14fc2aacad562d260 (diff)
downloadglibc-d776a59723b22192d33557d2127e13cb31905382.zip
glibc-d776a59723b22192d33557d2127e13cb31905382.tar.gz
glibc-d776a59723b22192d33557d2127e13cb31905382.tar.bz2
Revert "Update code to handle the new ABI for sending inlined port rights."
This reverts commit 7e23b3c2c008e0b9b5da055e675d40cc27bb10ef.
Diffstat (limited to 'mach')
-rw-r--r--mach/msg-destroy.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/mach/msg-destroy.c b/mach/msg-destroy.c
index 8640c96..19137ba 100644
--- a/mach/msg-destroy.c
+++ b/mach/msg-destroy.c
@@ -108,17 +108,11 @@ __mach_msg_destroy (mach_msg_header_t *msg)
addr = is_inline ? saddr : * (vm_offset_t *) saddr;
if (MACH_MSG_TYPE_PORT_ANY(name)) {
+ mach_port_t *ports = (mach_port_t *) addr;
mach_msg_type_number_t i;
- if (is_inline) {
- mach_port_name_inlined_t *inlined_ports = (mach_port_name_inlined_t *)addr;
- for (i = 0; i < number; i++)
- mach_msg_destroy_port(inlined_ports[i].name, name);
- } else {
- mach_port_t *ports = (mach_port_t *) addr;
- for (i = 0; i < number; i++)
- mach_msg_destroy_port(ports[i], name);
- }
+ for (i = 0; i < number; i++)
+ mach_msg_destroy_port(*ports++, name);
}
if (is_inline) {