bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH gnumach] Use designated initializers in kern/exception.c


From: Flavio Cruz
Subject: [PATCH gnumach] Use designated initializers in kern/exception.c
Date: Wed, 3 May 2023 19:14:47 -0400

---
 kern/exception.c | 56 ++++++++++++++++++++++++------------------------
 1 file changed, 28 insertions(+), 28 deletions(-)

diff --git a/kern/exception.c b/kern/exception.c
index 10435b5c..d3fa50e1 100644
--- a/kern/exception.c
+++ b/kern/exception.c
@@ -291,33 +291,33 @@ struct mach_exception {
                                        /* in mach/machine/vm_types.h */
 
 mach_msg_type_t exc_port_proto = {
-       /* msgt_name = */               MACH_MSG_TYPE_PORT_SEND,
-       /* msgt_size = */               PORT_T_SIZE_IN_BITS,
-       /* msgt_number = */             1,
-       /* msgt_inline = */             TRUE,
-       /* msgt_longform = */           FALSE,
-       /* msgt_deallocate = */         FALSE,
-       /* msgt_unused = */             0
+       .msgt_name = MACH_MSG_TYPE_PORT_SEND,
+       .msgt_size = PORT_T_SIZE_IN_BITS,
+       .msgt_number = 1,
+       .msgt_inline = TRUE,
+       .msgt_longform = FALSE,
+       .msgt_deallocate = FALSE,
+       .msgt_unused = 0
 };
 
 mach_msg_type_t exc_code_proto = {
-       /* msgt_name = */               INTEGER_T_TYPE,
-       /* msgt_size = */               INTEGER_T_SIZE_IN_BITS,
-       /* msgt_number = */             1,
-       /* msgt_inline = */             TRUE,
-       /* msgt_longform = */           FALSE,
-       /* msgt_deallocate = */         FALSE,
-       /* msgt_unused = */             0
+       .msgt_name = INTEGER_T_TYPE,
+       .msgt_size = INTEGER_T_SIZE_IN_BITS,
+       .msgt_number = 1,
+       .msgt_inline = TRUE,
+       .msgt_longform = FALSE,
+       .msgt_deallocate = FALSE,
+       .msgt_unused = 0
 };
 
 mach_msg_type_t exc_subcode_proto = {
-       /* msgt_name = */               RPC_LONG_INTEGER_T_TYPE,
-       /* msgt_size = */               RPC_LONG_INTEGER_T_SIZE_IN_BITS,
-       /* msgt_number = */             1,
-       /* msgt_inline = */             TRUE,
-       /* msgt_longform = */           FALSE,
-       /* msgt_deallocate = */         FALSE,
-       /* msgt_unused = */             0
+       .msgt_name = RPC_LONG_INTEGER_T_TYPE,
+       .msgt_size = RPC_LONG_INTEGER_T_SIZE_IN_BITS,
+       .msgt_number = 1,
+       .msgt_inline = TRUE,
+       .msgt_longform = FALSE,
+       .msgt_deallocate = FALSE,
+       .msgt_unused = 0
 };
 
 /*
@@ -780,13 +780,13 @@ exception_raise(
 
 /* Type descriptor for the return code.  */
 mach_msg_type_t exc_RetCode_proto = {
-       /* 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
 };
 
 /*
-- 
2.39.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]