2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Post-process protoc-c files to avoid depending on anonymous unions.

Based on a patch from Michael Osipov.
GitHub issue #60
This commit is contained in:
Todd C. Miller
2020-09-04 13:17:51 -06:00
parent 24b35393e3
commit eaa95acb31
10 changed files with 174 additions and 121 deletions

View File

@@ -78,7 +78,7 @@ struct _ClientMessage
ChangeWindowSize *winsize_event;
CommandSuspend *suspend_event;
ClientHello *hello_msg;
};
} u;
};
#define CLIENT_MESSAGE__INIT \
{ PROTOBUF_C_MESSAGE_INIT (&client_message__descriptor) \
@@ -170,7 +170,7 @@ struct _InfoMessage
char *strval;
InfoMessage__StringList *strlistval;
InfoMessage__NumberList *numlistval;
};
} u;
};
#define INFO_MESSAGE__INIT \
{ PROTOBUF_C_MESSAGE_INIT (&info_message__descriptor) \
@@ -398,7 +398,7 @@ struct _ServerMessage
* abort message, kill command
*/
char *abort;
};
} u;
};
#define SERVER_MESSAGE__INIT \
{ PROTOBUF_C_MESSAGE_INIT (&server_message__descriptor) \