Don't explicitly declare optarg and optind. These are declared in
unistd.h, which is already included.
This commit is contained in:
parent
7a598eabdd
commit
2c15efcfb5
@ -54,7 +54,6 @@ static const char rcsid[] =
|
|||||||
#include "pathnames.h"
|
#include "pathnames.h"
|
||||||
|
|
||||||
extern char *__progname; /* from crt0.o */
|
extern char *__progname; /* from crt0.o */
|
||||||
extern int optreset; /* from getopt.o */
|
|
||||||
|
|
||||||
static void usage __P((void));
|
static void usage __P((void));
|
||||||
static void cleanup __P((void));
|
static void cleanup __P((void));
|
||||||
|
@ -78,8 +78,6 @@ main(argc, argv)
|
|||||||
int argc;
|
int argc;
|
||||||
char **argv;
|
char **argv;
|
||||||
{
|
{
|
||||||
extern int optind;
|
|
||||||
extern char *optarg;
|
|
||||||
struct timezone tz;
|
struct timezone tz;
|
||||||
int ch, rflag;
|
int ch, rflag;
|
||||||
int jflag, nflag;
|
int jflag, nflag;
|
||||||
|
@ -71,7 +71,6 @@ main(argc, argv)
|
|||||||
int argc;
|
int argc;
|
||||||
char *argv[];
|
char *argv[];
|
||||||
{
|
{
|
||||||
extern int optind;
|
|
||||||
struct stat sb;
|
struct stat sb;
|
||||||
int ch, exitval;
|
int ch, exitval;
|
||||||
char *p, *sourcedir;
|
char *p, *sourcedir;
|
||||||
|
@ -188,8 +188,6 @@ pax_options(argc, argv)
|
|||||||
unsigned int bflg = 0;
|
unsigned int bflg = 0;
|
||||||
register char *pt;
|
register char *pt;
|
||||||
FSUB tmp;
|
FSUB tmp;
|
||||||
extern char *optarg;
|
|
||||||
extern int optind;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* process option flags
|
* process option flags
|
||||||
|
Loading…
x
Reference in New Issue
Block a user