Don't explicitly declare optarg and optind. These are declared in

unistd.h, which is already included.
This commit is contained in:
Warner Losh 2000-08-16 05:14:49 +00:00
parent 7a598eabdd
commit 2c15efcfb5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=64692
4 changed files with 0 additions and 6 deletions

View File

@ -54,7 +54,6 @@ static const char rcsid[] =
#include "pathnames.h"
extern char *__progname; /* from crt0.o */
extern int optreset; /* from getopt.o */
static void usage __P((void));
static void cleanup __P((void));

View File

@ -78,8 +78,6 @@ main(argc, argv)
int argc;
char **argv;
{
extern int optind;
extern char *optarg;
struct timezone tz;
int ch, rflag;
int jflag, nflag;

View File

@ -71,7 +71,6 @@ main(argc, argv)
int argc;
char *argv[];
{
extern int optind;
struct stat sb;
int ch, exitval;
char *p, *sourcedir;

View File

@ -188,8 +188,6 @@ pax_options(argc, argv)
unsigned int bflg = 0;
register char *pt;
FSUB tmp;
extern char *optarg;
extern int optind;
/*
* process option flags