summaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-05-03 18:11:46 -0400
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-05-04 00:23:58 +0200
commit717897ca40be3bb78130617c8e880137eff96d96 (patch)
treeae59f7ddfced97e8020ab7af0117a49b17ddaa75 /boot
parent9bbcc8265a062572e19dc18d679948ebbe892419 (diff)
Use designated initializers when building mach_msg_type_t
Message-Id: <ZFLcIs0iwiC9kQDf@jupiter.tail36e24.ts.net>
Diffstat (limited to 'boot')
-rw-r--r--boot/boot.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/boot/boot.c b/boot/boot.c
index e0c6bfb2..3fa9ddab 100644
--- a/boot/boot.c
+++ b/boot/boot.c
@@ -168,14 +168,14 @@ mig_reply_setup (
mach_msg_header_t *out)
{
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
+ };
#define InP (in)
#define OutP ((mig_reply_header_t *) out)