Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/chs-ubc2]: src/sys/compat Add some casts to round_page calls to make thi...
details: https://anonhg.NetBSD.org/src/rev/f41bf2251f45
branches: chs-ubc2
changeset: 471462:f41bf2251f45
user: fvdl <fvdl%NetBSD.org@localhost>
date: Fri Oct 22 22:57:58 1999 +0000
description:
Add some casts to round_page calls to make this compile.
diffstat:
sys/compat/ibcs2/ibcs2_misc.c | 4 ++--
sys/compat/svr4/svr4_misc.c | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r 3e30496c8b56 -r f41bf2251f45 sys/compat/ibcs2/ibcs2_misc.c
--- a/sys/compat/ibcs2/ibcs2_misc.c Tue Aug 31 21:03:43 1999 +0000
+++ b/sys/compat/ibcs2/ibcs2_misc.c Fri Oct 22 22:57:58 1999 +0000
@@ -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 @@
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;
diff -r 3e30496c8b56 -r f41bf2251f45 sys/compat/svr4/svr4_misc.c
--- a/sys/compat/svr4/svr4_misc.c Tue Aug 31 21:03:43 1999 +0000
+++ b/sys/compat/svr4/svr4_misc.c Fri Oct 22 22:57:58 1999 +0000
@@ -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 @@
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 @@
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 @@
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));
Home |
Main Index |
Thread Index |
Old Index