From 717897ca40be3bb78130617c8e880137eff96d96 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Wed, 3 May 2023 18:11:46 -0400 Subject: Use designated initializers when building mach_msg_type_t Message-Id: --- libports/manage-multithread.c | 16 ++++++++-------- libports/manage-one-thread.c | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) (limited to 'libports') diff --git a/libports/manage-multithread.c b/libports/manage-multithread.c index d138092b..9f397b26 100644 --- a/libports/manage-multithread.c +++ b/libports/manage-multithread.c @@ -128,14 +128,14 @@ ports_manage_port_operations_multithread (struct port_bucket *bucket, struct rpc_info link; mig_reply_header_t *outp = (mig_reply_header_t *) outheadp; static const mach_msg_type_t RetCodeType = { - /* msgt_name = */ MACH_MSG_TYPE_INTEGER_32, - /* msgt_size = */ 32, - /* msgt_number = */ 1, - /* msgt_inline = */ TRUE, - /* msgt_longform = */ FALSE, - /* msgt_deallocate = */ FALSE, - /* msgt_unused = */ 0 - }; + .msgt_name = MACH_MSG_TYPE_INTEGER_32, + .msgt_size = 32, + .msgt_number = 1, + .msgt_inline = TRUE, + .msgt_longform = FALSE, + .msgt_deallocate = FALSE, + .msgt_unused = 0 + }; if (__atomic_sub_fetch (&nreqthreads, 1, __ATOMIC_RELAXED) == 0) /* No thread would be listening for requests, spawn one. */ diff --git a/libports/manage-one-thread.c b/libports/manage-one-thread.c index 4b92148b..3f039c5d 100644 --- a/libports/manage-one-thread.c +++ b/libports/manage-one-thread.c @@ -38,14 +38,14 @@ ports_manage_port_operations_one_thread (struct port_bucket *bucket, error_t err; mig_reply_header_t *outp = (mig_reply_header_t *) outheadp; static const mach_msg_type_t RetCodeType = { - /* msgt_name = */ MACH_MSG_TYPE_INTEGER_32, - /* msgt_size = */ 32, - /* msgt_number = */ 1, - /* msgt_inline = */ TRUE, - /* msgt_longform = */ FALSE, - /* msgt_deallocate = */ FALSE, - /* msgt_unused = */ 0 - }; + .msgt_name = MACH_MSG_TYPE_INTEGER_32, + .msgt_size = 32, + .msgt_number = 1, + .msgt_inline = TRUE, + .msgt_longform = FALSE, + .msgt_deallocate = FALSE, + .msgt_unused = 0 + }; /* Fill in default response. */ outp->Head.msgh_bits -- cgit v1.2.3