From 448889a4f0c32ba8ea61f870d4edcb0e0d58af85 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Tue, 20 Dec 2022 20:01:02 -0500 Subject: Use -Wstrict-prototypes and fix warnings Most of the changes include defining and using proper function type declarations (with argument types declared) and avoiding using the K&R style of function declarations. Message-Id: --- kern/ipc_mig.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'kern/ipc_mig.c') diff --git a/kern/ipc_mig.c b/kern/ipc_mig.c index 7ed12faa..f353009e 100644 --- a/kern/ipc_mig.c +++ b/kern/ipc_mig.c @@ -285,10 +285,7 @@ mig_put_reply_port( * len - Length of destination buffer. */ vm_size_t -mig_strncpy(dest, src, len) - char *dest; - const char *src; - int len; +mig_strncpy(char *dest, const char *src, int len) { char *dest_ = dest; int i; -- cgit v1.2.3