summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_pager.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_pager.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_pager.c')
-rw-r--r--sys/vm/vm_pager.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/vm/vm_pager.c b/sys/vm/vm_pager.c
index 6d05321..48e7247 100644
--- a/sys/vm/vm_pager.c
+++ b/sys/vm/vm_pager.c
@@ -61,7 +61,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id$
+ * $Id: vm_pager.c,v 1.27 1997/02/22 09:48:35 peter Exp $
*/
/*
@@ -155,12 +155,8 @@ vm_pager_bufferinit()
* need to perform page-level validation (e.g. the device pager).
*/
vm_object_t
-vm_pager_allocate(type, handle, size, prot, off)
- objtype_t type;
- void *handle;
- vm_size_t size;
- vm_prot_t prot;
- vm_ooffset_t off;
+vm_pager_allocate(objtype_t type, void *handle, vm_size_t size, vm_prot_t prot,
+ vm_ooffset_t off)
{
struct pagerops *ops;
OpenPOWER on IntegriCloud