From 983b56e9f7ef1fdfcf82ad82cc70f939318e599f Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Wed, 19 Jan 2022 22:59:13 -0800 Subject: Add _Static_assert when compiling server and user stubs. This is only done when data is inlined with a concrete size. It ensures the C and Mig types have the same size in the target arch. Tested by building the hurd package. No assertions were triggered. Message-Id: --- user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'user.c') diff --git a/user.c b/user.c index 7f355ed..9aff07c 100644 --- a/user.c +++ b/user.c @@ -1164,7 +1164,7 @@ WriteRoutine(FILE *file, const routine_t *rt) /* declarations and initializations of the mach_msg_type_t variables for each argument */ - WriteList(file, rt->rtArgs, WriteTypeDeclIn, akbRequest, "\n", "\n"); + WriteList(file, rt->rtArgs, WriteTypeDeclInUser, akbRequest, "\n", "\n"); if (!rt->rtOneWay) WriteList(file, rt->rtArgs, WriteCheckDecl, akbReplyQC, "\n", "\n"); -- cgit v1.2.3