summaryrefslogtreecommitdiff
path: root/sys/compat
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-11-14 21:22:53 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-11-14 21:22:53 +0000
commit52057270fc08cb6f7dd09ed3c013c444c09023b5 (patch)
tree533f934d878b5e77733137eb1c9a1b6cf94f59d1 /sys/compat
parent846f936dfe7c65bc3f47f2b9ebde8e69258e9334 (diff)
void * change to mmap()
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/svr4/svr4_misc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/svr4/svr4_misc.c b/sys/compat/svr4/svr4_misc.c
index 33fa0fe455b..1f34a282438 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.16 1997/11/13 06:23:05 deraadt Exp $ */
+/* $OpenBSD: svr4_misc.c,v 1.17 1997/11/14 21:22:52 deraadt Exp $ */
/* $NetBSD: svr4_misc.c,v 1.42 1996/12/06 03:22:34 christos Exp $ */
/*
@@ -332,7 +332,7 @@ svr4_sys_mmap(p, v, retval)
{
struct svr4_sys_mmap_args *uap = v;
struct sys_mmap_args mm;
- caddr_t rp;
+ void *rp;
#define _MAP_NEW 0x80000000
/*
* Verify the arguments.
@@ -350,7 +350,7 @@ svr4_sys_mmap(p, v, retval)
SCARG(&mm, addr) = SCARG(uap, addr);
SCARG(&mm, pos) = SCARG(uap, pos);
- rp = (caddr_t) round_page(p->p_vmspace->vm_daddr + MAXDSIZ);
+ rp = (void *) round_page(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;