mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-02 08:42:48 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=64692
@ -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