diff options
Diffstat (limited to 'sys/miscfs/procfs/procfs_mem.c')
-rw-r--r-- | sys/miscfs/procfs/procfs_mem.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/miscfs/procfs/procfs_mem.c b/sys/miscfs/procfs/procfs_mem.c index 439d6f56d0c..901f13c5e07 100644 --- a/sys/miscfs/procfs/procfs_mem.c +++ b/sys/miscfs/procfs/procfs_mem.c @@ -1,4 +1,5 @@ -/* $NetBSD: procfs_mem.c,v 1.7 1995/01/05 07:10:54 chopps Exp $ */ +/* $OpenBSD: procfs_mem.c,v 1.2 1996/02/27 08:03:36 niklas Exp $ */ +/* $NetBSD: procfs_mem.c,v 1.8 1996/02/09 22:40:50 christos Exp $ */ /* * Copyright (c) 1993 Jan-Simon Pendry @@ -56,6 +57,8 @@ #include <vm/vm_kern.h> #include <vm/vm_page.h> +static int procfs_rwmem __P((struct proc *, struct uio *)); + static int procfs_rwmem(p, uio) struct proc *p; @@ -182,7 +185,8 @@ procfs_rwmem(p, uio) * Now do the i/o move. */ if (!error) - error = uiomove(kva + page_offset, len, uio); + error = uiomove((caddr_t) (kva + page_offset), + len, uio); vm_map_remove(kernel_map, kva, kva + PAGE_SIZE); } |