diff --git a/sys/compat/ibcs2/ibcs2_misc.c b/sys/compat/ibcs2/ibcs2_misc.c index c440af750779..767644f6da15 100644 --- a/sys/compat/ibcs2/ibcs2_misc.c +++ b/sys/compat/ibcs2/ibcs2_misc.c @@ -1,4 +1,4 @@ -/* $NetBSD: ibcs2_misc.c,v 1.62 2003/01/28 21:57:42 atatat Exp $ */ +/* $NetBSD: ibcs2_misc.c,v 1.63 2003/01/29 07:00:35 atatat Exp $ */ /* * Copyright (c) 1994, 1995, 1998 Scott Bartram @@ -55,7 +55,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ibcs2_misc.c,v 1.62 2003/01/28 21:57:42 atatat Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ibcs2_misc.c,v 1.63 2003/01/29 07:00:35 atatat Exp $"); #include #include @@ -1515,9 +1515,7 @@ ibcs2_sys_mmap(l, v, retval) syscallarg(int) fd; syscallarg(ibcs2_off_t) off; } */ *uap = v; - struct proc *p = l->l_proc; struct sys_mmap_args mm; - void *rp; #define _MAP_NEW 0x80000000 /* XXX why? */ diff --git a/sys/compat/sunos/sunos_misc.c b/sys/compat/sunos/sunos_misc.c index f4f0995edbed..118d0e2c6a33 100644 --- a/sys/compat/sunos/sunos_misc.c +++ b/sys/compat/sunos/sunos_misc.c @@ -1,4 +1,4 @@ -/* $NetBSD: sunos_misc.c,v 1.118 2003/01/28 21:57:44 atatat Exp $ */ +/* $NetBSD: sunos_misc.c,v 1.119 2003/01/29 07:00:37 atatat Exp $ */ /* * Copyright (c) 1992, 1993 @@ -54,7 +54,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: sunos_misc.c,v 1.118 2003/01/28 21:57:44 atatat Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sunos_misc.c,v 1.119 2003/01/29 07:00:37 atatat Exp $"); #if defined(_KERNEL_OPT) #include "opt_nfsserver.h" @@ -612,7 +612,6 @@ sunos_sys_mmap(l, v, retval) register_t *retval; { struct sunos_sys_mmap_args *uap = v; - struct proc *p = l->l_proc; struct sys_mmap_args ouap; /* diff --git a/sys/compat/sunos32/sunos32_misc.c b/sys/compat/sunos32/sunos32_misc.c index 72bbde373aba..2f4339d772c8 100644 --- a/sys/compat/sunos32/sunos32_misc.c +++ b/sys/compat/sunos32/sunos32_misc.c @@ -1,4 +1,4 @@ -/* $NetBSD: sunos32_misc.c,v 1.16 2003/01/28 21:57:45 atatat Exp $ */ +/* $NetBSD: sunos32_misc.c,v 1.17 2003/01/29 07:00:38 atatat Exp $ */ /* from :NetBSD: sunos_misc.c,v 1.107 2000/12/01 19:25:10 jdolecek Exp */ /* @@ -83,7 +83,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: sunos32_misc.c,v 1.16 2003/01/28 21:57:45 atatat Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sunos32_misc.c,v 1.17 2003/01/29 07:00:38 atatat Exp $"); #define COMPAT_SUNOS 1 @@ -837,7 +837,6 @@ sunos32_sys_mmap(l, v, retval) syscallarg(int) fd; syscallarg(netbsd32_long) pos; } */ *uap = v; - struct proc *p = l->l_proc; struct sys_mmap_args ua; void *rt; int error; diff --git a/sys/compat/svr4/svr4_misc.c b/sys/compat/svr4/svr4_misc.c index 19025ab6b5aa..52818a4feb22 100644 --- a/sys/compat/svr4/svr4_misc.c +++ b/sys/compat/svr4/svr4_misc.c @@ -1,4 +1,4 @@ -/* $NetBSD: svr4_misc.c,v 1.100 2003/01/28 21:57:45 atatat Exp $ */ +/* $NetBSD: svr4_misc.c,v 1.101 2003/01/29 07:00:39 atatat Exp $ */ /*- * Copyright (c) 1994 The NetBSD Foundation, Inc. @@ -44,7 +44,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: svr4_misc.c,v 1.100 2003/01/28 21:57:45 atatat Exp $"); +__KERNEL_RCSID(0, "$NetBSD: svr4_misc.c,v 1.101 2003/01/29 07:00:39 atatat Exp $"); #include #include @@ -523,7 +523,6 @@ svr4_sys_mmap(l, v, retval) { struct svr4_sys_mmap_args *uap = v; struct sys_mmap_args mm; - void *rp; /* * Verify the arguments. */ @@ -554,7 +553,6 @@ svr4_sys_mmap64(l, v, retval) { struct svr4_sys_mmap64_args *uap = v; struct sys_mmap_args mm; - void *rp; /* * Verify the arguments. */ diff --git a/sys/compat/svr4_32/svr4_32_misc.c b/sys/compat/svr4_32/svr4_32_misc.c index 8bf8dbf661ab..173551f2549a 100644 --- a/sys/compat/svr4_32/svr4_32_misc.c +++ b/sys/compat/svr4_32/svr4_32_misc.c @@ -1,4 +1,4 @@ -/* $NetBSD: svr4_32_misc.c,v 1.15 2003/01/28 21:57:46 atatat Exp $ */ +/* $NetBSD: svr4_32_misc.c,v 1.16 2003/01/29 07:00:40 atatat Exp $ */ /*- * Copyright (c) 1994 The NetBSD Foundation, Inc. @@ -44,7 +44,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: svr4_32_misc.c,v 1.15 2003/01/28 21:57:46 atatat Exp $"); +__KERNEL_RCSID(0, "$NetBSD: svr4_32_misc.c,v 1.16 2003/01/29 07:00:40 atatat Exp $"); #include #include @@ -524,7 +524,6 @@ svr4_32_sys_mmap(l, v, retval) register_t *retval; { struct svr4_32_sys_mmap_args *uap = v; - struct proc *p = l->l_proc; struct sys_mmap_args mm; void *rp; int error; @@ -564,7 +563,6 @@ svr4_32_sys_mmap64(l, v, retval) { struct svr4_32_sys_mmap64_args *uap = v; struct sys_mmap_args mm; - struct proc *p = l->l_proc; void *rp; int error; /* diff --git a/sys/compat/ultrix/ultrix_misc.c b/sys/compat/ultrix/ultrix_misc.c index 16e10b8d31fe..a7b9e7ec2761 100644 --- a/sys/compat/ultrix/ultrix_misc.c +++ b/sys/compat/ultrix/ultrix_misc.c @@ -1,4 +1,4 @@ -/* $NetBSD: ultrix_misc.c,v 1.82 2003/01/28 21:57:47 atatat Exp $ */ +/* $NetBSD: ultrix_misc.c,v 1.83 2003/01/29 07:00:40 atatat Exp $ */ /* * Copyright (c) 1995, 1997 Jonathan Stone (hereinafter referred to as the author) @@ -80,7 +80,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ultrix_misc.c,v 1.82 2003/01/28 21:57:47 atatat Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ultrix_misc.c,v 1.83 2003/01/29 07:00:40 atatat Exp $"); #if defined(_KERNEL_OPT) #include "opt_nfsserver.h" @@ -331,11 +331,7 @@ ultrix_sys_mmap(l, v, retval) register_t *retval; { struct ultrix_sys_mmap_args *uap = v; - struct proc *p = l->l_proc; struct sys_mmap_args ouap; - struct filedesc *fdp; - struct file *fp; - struct vnode *vp; /* * Verify the arguments.