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_debug.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'vm/vm_debug.c') diff --git a/vm/vm_debug.c b/vm/vm_debug.c index 4b5c1521..3339d0c8 100644 --- a/vm/vm_debug.c +++ b/vm/vm_debug.c @@ -433,10 +433,8 @@ mach_vm_object_pages( */ kern_return_t -host_virtual_physical_table_info(host, infop, countp) - const host_t host; - hash_info_bucket_array_t *infop; - natural_t *countp; +host_virtual_physical_table_info(const host_t host, + hash_info_bucket_array_t *infop, natural_t *countp) { vm_offset_t addr; vm_size_t size = 0;/* '=0' to quiet gcc warnings */ -- cgit v1.2.3