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: --- vm/vm_kern.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm/vm_kern.c') diff --git a/vm/vm_kern.c b/vm/vm_kern.c index c624a875..51223d98 100644 --- a/vm/vm_kern.c +++ b/vm/vm_kern.c @@ -1014,7 +1014,7 @@ kmem_io_map_copyout( return(ret); } copy->cpy_cont = vm_map_copy_discard_cont; - copy->cpy_cont_args = (char *) new_copy; + copy->cpy_cont_args = (vm_map_copyin_args_t)new_copy; copy = new_copy; page_list = ©->cpy_page_list[0]; } -- cgit v1.2.3