Skip to content

Commit

Permalink
Add some casts to round_page calls to make this compile.
Browse files Browse the repository at this point in the history
  • Loading branch information
fvdl committed Oct 22, 1999
1 parent 4f752b8 commit 6e2222b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions sys/compat/ibcs2/ibcs2_misc.c
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions sys/compat/svr4/svr4_misc.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit 6e2222b

Please sign in to comment.