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_user.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'vm/vm_user.c') diff --git a/vm/vm_user.c b/vm/vm_user.c index 9e789eba..b3887ad1 100644 --- a/vm/vm_user.c +++ b/vm/vm_user.c @@ -430,12 +430,11 @@ kern_return_t vm_map( * * [ To unwire the pages, specify VM_PROT_NONE. ] */ -kern_return_t vm_wire(port, map, start, size, access) - const ipc_port_t port; - vm_map_t map; - vm_offset_t start; - vm_size_t size; - vm_prot_t access; +kern_return_t vm_wire(const ipc_port_t port, + vm_map_t map, + vm_offset_t start, + vm_size_t size, + vm_prot_t access) { boolean_t priv; -- cgit v1.2.3