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/vnode_pager.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/vnode_pager.c')
-rw-r--r-- | sys/vm/vnode_pager.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/vm/vnode_pager.c b/sys/vm/vnode_pager.c index fab8b99..7aa4b94 100644 --- a/sys/vm/vnode_pager.c +++ b/sys/vm/vnode_pager.c @@ -38,7 +38,7 @@ * SUCH DAMAGE. * * from: @(#)vnode_pager.c 7.5 (Berkeley) 4/20/91 - * $Id: vnode_pager.c,v 1.71 1997/05/19 14:36:56 dfr Exp $ + * $Id: vnode_pager.c,v 1.72 1997/08/22 03:56:37 dyson Exp $ */ /* @@ -102,11 +102,8 @@ static int vnode_pager_leaf_putpages __P((vm_object_t object, vm_page_t *m, * Handle is a vnode pointer. */ vm_object_t -vnode_pager_alloc(handle, size, prot, offset) - void *handle; - vm_size_t size; - vm_prot_t prot; - vm_ooffset_t offset; +vnode_pager_alloc(void *handle, vm_size_t size, vm_prot_t prot, + vm_ooffset_t offset) { vm_object_t object; struct vnode *vp; |