Permalink
Browse files

Add some casts to round_page calls to make this compile.

  • Loading branch information...
1 parent 4f752b8 commit 6e2222ba4f5341011156d86e6527486195dc10b0 fvdl committed Oct 22, 1999
Showing with 6 additions and 6 deletions.
  1. +2 −2 sys/compat/ibcs2/ibcs2_misc.c
  2. +4 −4 sys/compat/svr4/svr4_misc.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ibcs2_misc.c,v 1.40.4.1 1999/06/21 01:07:12 thorpej Exp $ */
+/* $NetBSD: ibcs2_misc.c,v 1.40.4.2 1999/10/22 22:57:58 fvdl Exp $ */
/*
* Copyright (c) 1994, 1995, 1998 Scott Bartram
@@ -1517,7 +1517,7 @@ ibcs2_sys_mmap(p, v, retval)
SCARG(&mm, addr) = SCARG(uap, addr);
SCARG(&mm, pos) = SCARG(uap, off);
- rp = (void *) round_page(p->p_vmspace->vm_daddr + MAXDSIZ);
+ rp = (void *) round_page((vaddr_t)(p->p_vmspace->vm_daddr + MAXDSIZ));
if ((SCARG(&mm, flags) & MAP_FIXED) == 0 &&
SCARG(&mm, addr) != 0 && SCARG(&mm, addr) < rp)
SCARG(&mm, addr) = rp;
@@ -1,4 +1,4 @@
-/* $NetBSD: svr4_misc.c,v 1.75.4.2 1999/08/02 21:54:17 thorpej Exp $ */
+/* $NetBSD: svr4_misc.c,v 1.75.4.3 1999/10/22 22:58:00 fvdl Exp $ */
/*-
* Copyright (c) 1994 The NetBSD Foundation, Inc.
@@ -512,7 +512,7 @@ svr4_sys_mmap(p, v, retval)
SCARG(&mm, addr) = SCARG(uap, addr);
SCARG(&mm, pos) = SCARG(uap, pos);
- rp = (void *) round_page(p->p_vmspace->vm_daddr + MAXDSIZ);
+ rp = (void *) round_page((vaddr_t)(p->p_vmspace->vm_daddr + MAXDSIZ));
if ((SCARG(&mm, flags) & MAP_FIXED) == 0 &&
SCARG(&mm, addr) != 0 && SCARG(&mm, addr) < rp)
SCARG(&mm, addr) = rp;
@@ -547,7 +547,7 @@ svr4_sys_mmap64(p, v, retval)
SCARG(&mm, addr) = SCARG(uap, addr);
SCARG(&mm, pos) = SCARG(uap, pos);
- rp = (void *) round_page(p->p_vmspace->vm_daddr + MAXDSIZ);
+ rp = (void *) round_page((vaddr_t)(p->p_vmspace->vm_daddr + MAXDSIZ));
if ((SCARG(&mm, flags) & MAP_FIXED) == 0 &&
SCARG(&mm, addr) != 0 && SCARG(&mm, addr) < rp)
SCARG(&mm, addr) = rp;
@@ -722,7 +722,7 @@ svr4_sys_break(p, v, retval)
int diff;
old = (vaddr_t) vm->vm_daddr;
- new = round_page(SCARG(uap, nsize));
+ new = round_page((vaddr_t)SCARG(uap, nsize));
diff = new - old;
DPRINTF(("break(1): old %lx new %lx diff %x\n", old, new, diff));

0 comments on commit 6e2222b

Please sign in to comment.