diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-05 21:26:48 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-05 21:26:48 +0000 |
commit | ca8a4ccfe938b07fa473a582784074e5f93813cd (patch) | |
tree | e9075d1e6c63ae7e0fd9c950fcdebcfb637b3405 /sys/compat/svr4/svr4_misc.c | |
parent | 368552036fe6029364e1abc2351955db681286fc (diff) |
Remove the (vaddr_t) casts inside the round_page and trunc_page macros.
We might want to use them on types that are bigger than vaddr_t.
Fix all callers that pass pointers without casts.
Diffstat (limited to 'sys/compat/svr4/svr4_misc.c')
-rw-r--r-- | sys/compat/svr4/svr4_misc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/compat/svr4/svr4_misc.c b/sys/compat/svr4/svr4_misc.c index 848e60871be..5f4a57c5d86 100644 --- a/sys/compat/svr4/svr4_misc.c +++ b/sys/compat/svr4/svr4_misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: svr4_misc.c,v 1.29 2001/01/23 05:48:04 csapuntz Exp $ */ +/* $OpenBSD: svr4_misc.c,v 1.30 2001/05/05 21:26:43 art Exp $ */ /* $NetBSD: svr4_misc.c,v 1.42 1996/12/06 03:22:34 christos Exp $ */ /* @@ -368,7 +368,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; @@ -402,7 +402,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; @@ -666,7 +666,7 @@ svr4_sys_break(p, v, retval) register 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)); |