diff options
author | bde <bde@FreeBSD.org> | 1997-08-25 22:15:31 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1997-08-25 22:15:31 +0000 |
commit | c978fb36523322ed7db0f843aca2c0a73f8a192e (patch) | |
tree | ffbd342b3bd99dab9d92313058d7a62c7d3bd829 /sys/vm/vm_mmap.c | |
parent | df4046c530c54c154e7ddba70448b8eb442789a7 (diff) | |
download | FreeBSD-src-c978fb36523322ed7db0f843aca2c0a73f8a192e.zip FreeBSD-src-c978fb36523322ed7db0f843aca2c0a73f8a192e.tar.gz |
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.
Diffstat (limited to 'sys/vm/vm_mmap.c')
-rw-r--r-- | sys/vm/vm_mmap.c | 14 |
1 files changed, 5 insertions, 9 deletions
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; |