Don't declare 'extern opt*' getopt variables.

This commit is contained in:
simonb 2000-04-14 05:58:01 +00:00
parent d2f6a4723d
commit 48a5c3efa9
11 changed files with 19 additions and 40 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: arithmetic.c,v 1.13 1999/07/17 19:11:30 hubertf Exp $ */
/* $NetBSD: arithmetic.c,v 1.14 2000/04/14 05:58:01 simonb Exp $ */
/*
* Copyright (c) 1989, 1993
@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\
#if 0
static char sccsid[] = "@(#)arithmetic.c 8.1 (Berkeley) 5/31/93";
#else
__RCSID("$NetBSD: arithmetic.c,v 1.13 1999/07/17 19:11:30 hubertf Exp $");
__RCSID("$NetBSD: arithmetic.c,v 1.14 2000/04/14 05:58:01 simonb Exp $");
#endif
#endif /* not lint */
@ -118,8 +118,6 @@ main(argc, argv)
int argc;
char **argv;
{
extern char *optarg;
extern int optind;
int ch, cnt;
/* Revoke setgid privileges */

View File

@ -1,4 +1,4 @@
/* $NetBSD: fortune.c,v 1.22 1999/11/09 15:06:33 drochner Exp $ */
/* $NetBSD: fortune.c,v 1.23 2000/04/14 05:58:02 simonb Exp $ */
/*-
* Copyright (c) 1986, 1993
@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1986, 1993\n\
#if 0
static char sccsid[] = "@(#)fortune.c 8.1 (Berkeley) 5/31/93";
#else
__RCSID("$NetBSD: fortune.c,v 1.22 1999/11/09 15:06:33 drochner Exp $");
__RCSID("$NetBSD: fortune.c,v 1.23 2000/04/14 05:58:02 simonb Exp $");
#endif
#endif /* not lint */
@ -316,8 +316,6 @@ getargs(argc, argv)
# ifndef NO_REGEX
char *pat = NULL;
# endif /* NO_REGEX */
extern char *optarg;
extern int optind;
int ch;
ignore_case = FALSE;

View File

@ -1,4 +1,4 @@
/* $NetBSD: hunt.c,v 1.10 2000/03/02 18:22:31 kleink Exp $ */
/* $NetBSD: hunt.c,v 1.11 2000/04/14 05:58:03 simonb Exp $ */
/*
* Hunt
* Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold
@ -7,7 +7,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: hunt.c,v 1.10 2000/03/02 18:22:31 kleink Exp $");
__RCSID("$NetBSD: hunt.c,v 1.11 2000/04/14 05:58:03 simonb Exp $");
#endif /* not lint */
# include <sys/param.h>
@ -106,8 +106,6 @@ main(ac, av)
char *term;
int c;
extern int Otto_mode;
extern int optind;
extern char *optarg;
long enter_status;
enter_status = env_init((long) Q_CLOAK);

View File

@ -1,4 +1,4 @@
/* $NetBSD: driver.c,v 1.5 1997/10/20 00:37:16 lukem Exp $ */
/* $NetBSD: driver.c,v 1.6 2000/04/14 05:58:03 simonb Exp $ */
/*
* Hunt
* Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold
@ -7,7 +7,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: driver.c,v 1.5 1997/10/20 00:37:16 lukem Exp $");
__RCSID("$NetBSD: driver.c,v 1.6 2000/04/14 05:58:03 simonb Exp $");
#endif /* not lint */
# include <sys/ioctl.h>
@ -72,8 +72,6 @@ main(ac, av, ep)
static fd_set read_fds;
static FLAG first = TRUE;
static FLAG server = FALSE;
extern int optind;
extern char *optarg;
int c;
static struct timeval linger = { 90, 0 };

View File

@ -1,4 +1,4 @@
/* $NetBSD: main.c,v 1.2 1999/07/03 19:55:03 kleink Exp $ */
/* $NetBSD: main.c,v 1.3 2000/04/14 06:03:38 simonb Exp $ */
/*
* Copyright (c) 1980, 1986, 1993
@ -74,8 +74,6 @@ main(argc, argv)
{
int ch;
int ret = 0;
extern char *optarg;
extern int optind;
#ifndef DEBUG_IFILE
char *optstring = "b:C:dm:npy";
#else

View File

@ -1,4 +1,4 @@
/* $NetBSD: lmcctl.c,v 1.1 1999/03/25 04:05:37 explorer Exp $ */
/* $NetBSD: lmcctl.c,v 1.2 2000/04/14 06:03:39 simonb Exp $ */
/*-
* Copyright (c) 1997-1999 LAN Media Corporation (LMC)
@ -55,9 +55,6 @@
#include "extern.h"
extern char *optarg;
extern int optind, opterr, optopt;
void lmc_av9110_freq(u_int32_t, lmc_av9110_t *);
static void dumpdata(char *, lmc_ctl_t *);

View File

@ -1,4 +1,4 @@
/* $NetBSD: mount_ext2fs.c,v 1.6 1998/12/02 16:15:10 kenh Exp $ */
/* $NetBSD: mount_ext2fs.c,v 1.7 2000/04/14 06:03:39 simonb Exp $ */
/*-
* Copyright (c) 1993, 1994
@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1993, 1994\n\
#if 0
static char sccsid[] = "@(#)mount_ufs.c 8.4 (Berkeley) 4/26/95";
#else
__RCSID("$NetBSD: mount_ext2fs.c,v 1.6 1998/12/02 16:15:10 kenh Exp $");
__RCSID("$NetBSD: mount_ext2fs.c,v 1.7 2000/04/14 06:03:39 simonb Exp $");
#endif
#endif /* not lint */
@ -80,7 +80,6 @@ main(argc, argv)
int argc;
char *argv[];
{
extern int optreset;
struct ufs_args args; /* XXX ffs_args */
int ch, mntflags;
char *fs_name;

View File

@ -1,4 +1,4 @@
/* $NetBSD: mount_ffs.c,v 1.9 1998/12/01 23:20:43 kenh Exp $ */
/* $NetBSD: mount_ffs.c,v 1.10 2000/04/14 06:03:40 simonb Exp $ */
/*-
* Copyright (c) 1993, 1994
@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1993, 1994\n\
#if 0
static char sccsid[] = "@(#)mount_ufs.c 8.4 (Berkeley) 4/26/95";
#else
__RCSID("$NetBSD: mount_ffs.c,v 1.9 1998/12/01 23:20:43 kenh Exp $");
__RCSID("$NetBSD: mount_ffs.c,v 1.10 2000/04/14 06:03:40 simonb Exp $");
#endif
#endif /* not lint */
@ -81,7 +81,6 @@ main(argc, argv)
int argc;
char *argv[];
{
extern int optreset;
struct ufs_args args;
int ch, mntflags;
char *fs_name;

View File

@ -1,4 +1,4 @@
/* $NetBSD: raidctl.c,v 1.15 2000/03/23 14:50:36 oster Exp $ */
/* $NetBSD: raidctl.c,v 1.16 2000/04/14 06:03:40 simonb Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
* All rights reserved.
@ -93,8 +93,6 @@ main(argc,argv)
int argc;
char *argv[];
{
extern char *optarg;
extern int optind;
int ch;
int num_options;
unsigned long action;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pathconf.c,v 1.4 2000/01/17 02:31:14 itojun Exp $ */
/* $NetBSD: pathconf.c,v 1.5 2000/04/14 06:03:40 simonb Exp $ */
/*
* Copyright (c) 1993
@ -43,7 +43,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)pathconf.c 8.1 (Berkeley) 6/6/93";
#else
static char rcsid[] = "$NetBSD: pathconf.c,v 1.4 2000/01/17 02:31:14 itojun Exp $";
static char rcsid[] = "$NetBSD: pathconf.c,v 1.5 2000/04/14 06:03:40 simonb Exp $";
#endif
#endif /* not lint */
@ -86,8 +86,6 @@ main(argc, argv)
int argc;
char *argv[];
{
extern char *optarg;
extern int optind;
char *path;
int ch;

View File

@ -1,4 +1,4 @@
/* $NetBSD: sysctl.c,v 1.29 2000/04/08 23:18:27 soren Exp $ */
/* $NetBSD: sysctl.c,v 1.30 2000/04/14 06:03:40 simonb Exp $ */
/*
* Copyright (c) 1993
@ -44,7 +44,7 @@ __COPYRIGHT(
#if 0
static char sccsid[] = "@(#)sysctl.c 8.1 (Berkeley) 6/6/93";
#else
__RCSID("$NetBSD: sysctl.c,v 1.29 2000/04/08 23:18:27 soren Exp $");
__RCSID("$NetBSD: sysctl.c,v 1.30 2000/04/14 06:03:40 simonb Exp $");
#endif
#endif /* not lint */
@ -188,8 +188,6 @@ main(argc, argv)
int argc;
char *argv[];
{
extern char *optarg;
extern int optind;
char *fn = NULL;
int ch, lvl1;