From ca8a4ccfe938b07fa473a582784074e5f93813cd Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Sat, 5 May 2001 21:26:48 +0000 Subject: 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. --- sys/uvm/uvm_unix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/uvm/uvm_unix.c') diff --git a/sys/uvm/uvm_unix.c b/sys/uvm/uvm_unix.c index 44ac0c01018..eef8c966119 100644 --- a/sys/uvm/uvm_unix.c +++ b/sys/uvm/uvm_unix.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_unix.c,v 1.9 2001/05/05 20:57:03 art Exp $ */ +/* $OpenBSD: uvm_unix.c,v 1.10 2001/05/05 21:26:46 art Exp $ */ /* $NetBSD: uvm_unix.c,v 1.8 1999/03/25 18:48:56 mrg Exp $ */ /* @@ -83,7 +83,7 @@ sys_obreak(p, v, retval) long diff; old = (vaddr_t)vm->vm_daddr; - new = round_page(SCARG(uap, nsize)); + new = round_page((vaddr_t)SCARG(uap, nsize)); if ((new - old) > p->p_rlimit[RLIMIT_DATA].rlim_cur) return(ENOMEM); -- cgit v1.2.3