Cull unused variables. Sigh.

PS - Cross compilers are cool.
This commit is contained in:
atatat 2003-01-29 07:00:35 +00:00
parent 4783b17664
commit bede65472d
6 changed files with 12 additions and 24 deletions

View File

@ -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 <sys/cdefs.h>
__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 <sys/param.h>
#include <sys/systm.h>
@ -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? */

View File

@ -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 <sys/cdefs.h>
__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;
/*

View File

@ -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 <sys/cdefs.h>
__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;

View File

@ -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 <sys/cdefs.h>
__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 <sys/param.h>
#include <sys/systm.h>
@ -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.
*/

View File

@ -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 <sys/cdefs.h>
__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 <sys/param.h>
#include <sys/systm.h>
@ -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;
/*

View File

@ -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 <sys/cdefs.h>
__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.