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

unistd.h, which is already included.
This commit is contained in:
imp 2000-08-16 05:14:49 +00:00
parent 3e332df57b
commit 5963637929
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