summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_fault.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-08-25 22:15:31 +0000
committerbde <bde@FreeBSD.org>1997-08-25 22:15:31 +0000
commitc978fb36523322ed7db0f843aca2c0a73f8a192e (patch)
treeffbd342b3bd99dab9d92313058d7a62c7d3bd829 /sys/vm/vm_fault.c
parentdf4046c530c54c154e7ddba70448b8eb442789a7 (diff)
downloadFreeBSD-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_fault.c')
-rw-r--r--sys/vm/vm_fault.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c
index c138ff2..b1a1898 100644
--- a/sys/vm/vm_fault.c
+++ b/sys/vm/vm_fault.c
@@ -66,7 +66,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_fault.c,v 1.68 1997/04/06 16:16:11 peter Exp $
+ * $Id: vm_fault.c,v 1.69 1997/05/19 14:36:54 dfr Exp $
*/
/*
@@ -123,11 +123,7 @@ int vm_fault_additional_pages __P((vm_page_t, int, int, vm_page_t *, int *));
* Caller may hold no locks.
*/
int
-vm_fault(map, vaddr, fault_type, fault_flags)
- vm_map_t map;
- vm_offset_t vaddr;
- vm_prot_t fault_type;
- int fault_flags;
+vm_fault(vm_map_t map, vm_offset_t vaddr, vm_prot_t fault_type, int fault_flags)
{
vm_object_t first_object;
vm_pindex_t first_pindex;
OpenPOWER on IntegriCloud