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/device_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/device_pager.c')
-rw-r--r-- | sys/vm/device_pager.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/vm/device_pager.c b/sys/vm/device_pager.c index ef8eb65..ad09916 100644 --- a/sys/vm/device_pager.c +++ b/sys/vm/device_pager.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)device_pager.c 8.1 (Berkeley) 6/11/93 - * $Id$ + * $Id: device_pager.c,v 1.25 1997/02/22 09:48:01 peter Exp $ */ #include <sys/param.h> @@ -95,11 +95,7 @@ dev_pager_init() } static vm_object_t -dev_pager_alloc(handle, size, prot, foff) - void *handle; - vm_size_t size; - vm_prot_t prot; - vm_ooffset_t foff; +dev_pager_alloc(void *handle, vm_size_t size, vm_prot_t prot, vm_ooffset_t foff) { dev_t dev; d_mmap_t *mapfunc; |