From 42e5d73459400e81dd7c22ff4c226ab3ec728348 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Mon, 1 May 2023 21:10:42 -0400 Subject: Use mig_support.h prototypes instead of duplicating them. * include/mach/mig_support.h: Drop the ifndef because this file is only used internally to compile gnumach. We export mig_support.h from glibc already. * kern/ipc_mig.c: len should be vm_size_t. * kern/ipc_mig.h: Drop duplicate prototypes. Message-Id: --- kern/ipc_mig.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'kern/ipc_mig.c') diff --git a/kern/ipc_mig.c b/kern/ipc_mig.c index cb0b2c83..d6171877 100644 --- a/kern/ipc_mig.c +++ b/kern/ipc_mig.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include @@ -285,7 +286,7 @@ mig_put_reply_port( * len - Length of destination buffer. */ vm_size_t -mig_strncpy(char *dest, const char *src, int len) +mig_strncpy(char *dest, const char *src, vm_size_t len) { char *dest_ = dest; int i; -- cgit v1.2.3