From c978fb36523322ed7db0f843aca2c0a73f8a192e Mon Sep 17 00:00:00 2001 From: bde Date: Mon, 25 Aug 1997 22:15:31 +0000 Subject: 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. --- sys/vm/default_pager.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'sys/vm/default_pager.c') diff --git a/sys/vm/default_pager.c b/sys/vm/default_pager.c index 0188503..a1bc4be 100644 --- a/sys/vm/default_pager.c +++ b/sys/vm/default_pager.c @@ -28,7 +28,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: default_pager.c,v 1.11 1997/02/22 09:47:58 peter Exp $ */ #include @@ -72,11 +72,8 @@ struct pagerops defaultpagerops = { * no_pager_alloc just returns an initialized object. */ static vm_object_t -default_pager_alloc(handle, size, prot, offset) - void *handle; - register vm_size_t size; - vm_prot_t prot; - vm_ooffset_t offset; +default_pager_alloc(void *handle, vm_size_t size, vm_prot_t prot, + vm_ooffset_t offset) { if (handle != NULL) panic("default_pager_alloc: handle specified"); -- cgit v1.1