Get getopt interface from unistd.h
This commit is contained in:
parent
723a65e8f7
commit
cabaa3ba21
@ -36,6 +36,7 @@
|
||||
*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "decode.h"
|
||||
#include <unistd.h>
|
||||
|
||||
unsigned char buf[BSIZE];
|
||||
FILE *Fout = NULL;
|
||||
@ -104,9 +105,6 @@ usage(void)
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
extern int optind;
|
||||
extern int opterr;
|
||||
extern char *optarg;
|
||||
char devicename[80];
|
||||
char headerbuf[256];
|
||||
|
||||
|
@ -37,6 +37,7 @@
|
||||
|
||||
#define MAIN
|
||||
#include <locale.h>
|
||||
#include <unistd.h>
|
||||
#include "defs.h"
|
||||
#include "alias.h"
|
||||
|
||||
@ -62,8 +63,6 @@ main(int argc, char **argv)
|
||||
char *aliasfile = ALIASFILE;
|
||||
int rrtimeout = REREADTIMEOUT;
|
||||
|
||||
extern char *optarg;
|
||||
|
||||
setlocale( LC_ALL, "");
|
||||
|
||||
while ((i = getopt(argc, argv, "a:d:p:t:")) != -1)
|
||||
|
Loading…
Reference in New Issue
Block a user