From c978fb36523322ed7db0f843aca2c0a73f8a192e Mon Sep 17 00:00:00 2001 From: bde Date: Mon, 25 Aug 1997 22:15:31 +0000 Subject: Fixed type mismatches for functions with args of type vm_prot_t and/or vm_inherit_t. These types are smaller than ints, so the prototypes should have used the promoted type (int) to match the old-style function definitions. They use just vm_prot_t and/or vm_inherit_t. This depends on gcc features to work. I fixed the definitions since this is easiest. The correct fix may be to change the small types to u_int, to optimize for time instead of space. --- sys/vm/vm_mmap.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'sys/vm/vm_mmap.c') diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c index 27e83a7..6c1db90 100644 --- a/sys/vm/vm_mmap.c +++ b/sys/vm/vm_mmap.c @@ -38,7 +38,7 @@ * from: Utah $Hdr: vm_mmap.c 1.6 91/10/21$ * * @(#)vm_mmap.c 8.4 (Berkeley) 1/12/94 - * $Id: vm_mmap.c,v 1.64 1997/06/15 23:35:32 dyson Exp $ + * $Id: vm_mmap.c,v 1.65 1997/07/17 04:34:03 dyson Exp $ */ /* @@ -872,14 +872,10 @@ munlock(p, uap, retval) * Handle is either a vnode pointer or NULL for MAP_ANON. */ int -vm_mmap(map, addr, size, prot, maxprot, flags, handle, foff) - register vm_map_t map; - register vm_offset_t *addr; - register vm_size_t size; - vm_prot_t prot, maxprot; - register int flags; - caddr_t handle; /* XXX should be vp */ - vm_ooffset_t foff; +vm_mmap(vm_map_t map, vm_offset_t *addr, vm_size_t size, vm_prot_t prot, + vm_prot_t maxprot, int flags, + caddr_t handle, /* XXX should be vp */ + vm_ooffset_t foff) { boolean_t fitit; vm_object_t object; -- cgit v1.1