1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-02 08:42:48 +00:00

Get getopt interface from unistd.h

This commit is contained in:
Warner Losh 2003-06-07 18:43:09 +00:00
parent 723a65e8f7
commit cabaa3ba21
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=115975
2 changed files with 2 additions and 5 deletions

View File

@ -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];

View File

@ -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)