Don't declare 'extern opt*' getopt variables.
This commit is contained in:
parent
915c06c281
commit
51ee9dc68d
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: cat.c,v 1.22 2000/01/15 01:13:15 christos Exp $ */
|
||||
/* $NetBSD: cat.c,v 1.23 2000/04/14 05:52:56 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
@ -47,7 +47,7 @@ __COPYRIGHT(
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)cat.c 8.2 (Berkeley) 4/27/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: cat.c,v 1.22 2000/01/15 01:13:15 christos Exp $");
|
||||
__RCSID("$NetBSD: cat.c,v 1.23 2000/04/14 05:52:56 simonb Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -79,7 +79,6 @@ main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
{
|
||||
extern int optind;
|
||||
int ch;
|
||||
|
||||
(void)setlocale(LC_ALL, "");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: date.c,v 1.29 2000/01/04 14:15:09 kleink Exp $ */
|
||||
/* $NetBSD: date.c,v 1.30 2000/04/14 05:52:57 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1985, 1987, 1988, 1993
|
||||
@ -44,7 +44,7 @@ __COPYRIGHT(
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)date.c 8.2 (Berkeley) 4/28/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: date.c,v 1.29 2000/01/04 14:15:09 kleink Exp $");
|
||||
__RCSID("$NetBSD: date.c,v 1.30 2000/04/14 05:52:57 simonb Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -80,8 +80,6 @@ main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
{
|
||||
extern int optind;
|
||||
extern char *optarg;
|
||||
int ch, rflag;
|
||||
char *format, buf[1024];
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: getoldopt.c,v 1.8 2000/02/17 03:12:25 itohy Exp $ */
|
||||
/* $NetBSD: getoldopt.c,v 1.9 2000/04/14 05:52:58 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Plug-compatible replacement for getopt() for parsing tar-like
|
||||
@ -11,7 +11,7 @@
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: getoldopt.c,v 1.8 2000/02/17 03:12:25 itohy Exp $");
|
||||
__RCSID("$NetBSD: getoldopt.c,v 1.9 2000/04/14 05:52:58 simonb Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <stdio.h>
|
||||
@ -27,8 +27,6 @@ getoldopt(argc, argv, optstring)
|
||||
char **argv;
|
||||
char *optstring;
|
||||
{
|
||||
extern char *optarg; /* Points to next arg */
|
||||
extern int optind; /* Global argv index */
|
||||
static char *key; /* Points to next keyletter */
|
||||
static char use_getopt; /* !=0 if argv[1][0] was '-' */
|
||||
char c;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: options.c,v 1.27 2000/03/30 17:53:04 thorpej Exp $ */
|
||||
/* $NetBSD: options.c,v 1.28 2000/04/14 05:52:58 simonb Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1992 Keith Muller.
|
||||
@ -42,7 +42,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)options.c 8.2 (Berkeley) 4/18/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: options.c,v 1.27 2000/03/30 17:53:04 thorpej Exp $");
|
||||
__RCSID("$NetBSD: options.c,v 1.28 2000/04/14 05:52:58 simonb Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -203,8 +203,6 @@ pax_options(argc, argv)
|
||||
unsigned int bflg = 0;
|
||||
char *pt;
|
||||
FSUB tmp;
|
||||
extern char *optarg;
|
||||
extern int optind;
|
||||
|
||||
/*
|
||||
* process option flags
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: histedit.c,v 1.22 2000/01/27 23:39:40 christos Exp $ */
|
||||
/* $NetBSD: histedit.c,v 1.23 2000/04/14 05:52:58 simonb Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1993
|
||||
@ -41,7 +41,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)histedit.c 8.2 (Berkeley) 5/4/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: histedit.c,v 1.22 2000/01/27 23:39:40 christos Exp $");
|
||||
__RCSID("$NetBSD: histedit.c,v 1.23 2000/04/14 05:52:58 simonb Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -183,8 +183,6 @@ histcmd(argc, argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
{
|
||||
extern char *optarg;
|
||||
extern int optind, optopt, optreset;
|
||||
int ch;
|
||||
const char *editor = NULL;
|
||||
HistEvent he;
|
||||
|
Loading…
Reference in New Issue
Block a user