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: --- console/display.c | 58 +++++++++++++++++++++++++++---------------------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'console') diff --git a/console/display.c b/console/display.c index 5c821938..071cd993 100644 --- a/console/display.c +++ b/console/display.c @@ -229,43 +229,43 @@ nowait_file_changed (mach_port_t notify_port, natural_t tickno, Request *InP = &Mess.In; static const mach_msg_type_t ticknoType = { - /* msgt_name = */ 2, - /* 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 + }; static const mach_msg_type_t changeType = { - /* msgt_name = */ 2, - /* 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 }; static const mach_msg_type_t startType = { - /* msgt_name = */ 11, - /* msgt_size = */ 64, - /* msgt_number = */ 1, - /* msgt_inline = */ TRUE, - /* msgt_longform = */ FALSE, - /* msgt_deallocate = */ FALSE, - /* msgt_unused = */ 0 + .msgt_name = MACH_MSG_TYPE_INTEGER_64, + .msgt_size = 64, + .msgt_number = 1, + .msgt_inline = TRUE, + .msgt_longform = FALSE, + .msgt_deallocate = FALSE, + .msgt_unused = 0 }; static const mach_msg_type_t endType = { - /* msgt_name = */ 11, - /* msgt_size = */ 64, - /* msgt_number = */ 1, - /* msgt_inline = */ TRUE, - /* msgt_longform = */ FALSE, - /* msgt_deallocate = */ FALSE, - /* msgt_unused = */ 0 + .msgt_name = MACH_MSG_TYPE_INTEGER_64, + .msgt_size = 64, + .msgt_number = 1, + .msgt_inline = TRUE, + .msgt_longform = FALSE, + .msgt_deallocate = FALSE, + .msgt_unused = 0 }; InP->ticknoType = ticknoType; -- cgit v1.2.3