Don't explicitly declare optarg and optind. These are declared in
unistd.h, which is already included.
This commit is contained in:
parent
3e332df57b
commit
5963637929
@ -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));
|
||||
|
@ -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;
|
||||
|
@ -71,7 +71,6 @@ main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
{
|
||||
extern int optind;
|
||||
struct stat sb;
|
||||
int ch, exitval;
|
||||
char *p, *sourcedir;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user