diff options
| author | 2001-05-05 21:26:34 +0000 | |
|---|---|---|
| committer | 2001-05-05 21:26:34 +0000 | |
| commit | 4c78623bc5b2ddc9adce1aa997eef744b1d6891b (patch) | |
| tree | 1d578ff3a2501c4d0ce733a720a9ea86899288c2 /sys/uvm/uvm_unix.c | |
| parent | Get rid of CLSIZE and all related stuff. (diff) | |
| download | wireguard-openbsd-4c78623bc5b2ddc9adce1aa997eef744b1d6891b.tar.xz wireguard-openbsd-4c78623bc5b2ddc9adce1aa997eef744b1d6891b.zip | |
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/uvm/uvm_unix.c')
| -rw-r--r-- | sys/uvm/uvm_unix.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
