From 5a5ec187ae6cb2afc874ad9ef118ef634e9164c8 Mon Sep 17 00:00:00 2001 From: Marin Ramesa Date: Mon, 16 Dec 2013 23:55:17 +0100 Subject: vm: qualify pointers whose dereferenced values are constant with const --- vm/vm_map.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'vm/vm_map.c') diff --git a/vm/vm_map.c b/vm/vm_map.c index 55ceb75e..e6eabdbc 100644 --- a/vm/vm_map.c +++ b/vm/vm_map.c @@ -256,7 +256,7 @@ vm_map_t vm_map_create(pmap, min, max, pageable) _vm_map_entry_create(&(copy)->cpy_hdr) vm_map_entry_t _vm_map_entry_create(map_header) - struct vm_map_header *map_header; + const struct vm_map_header *map_header; { kmem_cache_t cache; vm_map_entry_t entry; @@ -285,7 +285,7 @@ vm_map_entry_t _vm_map_entry_create(map_header) _vm_map_entry_dispose(&(copy)->cpy_hdr, (entry)) void _vm_map_entry_dispose(map_header, entry) - struct vm_map_header *map_header; + const struct vm_map_header *map_header; vm_map_entry_t entry; { kmem_cache_t cache; @@ -4715,7 +4715,7 @@ kern_return_t vm_map_machine_attribute(map, address, size, attribute, value) * vm_map_print: [ debug ] */ void vm_map_print(map) - vm_map_t map; + vm_map_t map; { vm_map_entry_t entry; @@ -4783,7 +4783,7 @@ void vm_map_print(map) */ void vm_map_copy_print(copy) - vm_map_copy_t copy; + const vm_map_copy_t copy; { int i, npages; -- cgit v1.2.3