diff options
author | imp <imp@FreeBSD.org> | 2003-06-07 18:43:09 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2003-06-07 18:43:09 +0000 |
commit | da3e415da131b557ea4271ab70a0701834376b51 (patch) | |
tree | 38397f0c5810a82f15bc0d70b29a3781456e15d8 /usr.sbin/i4b | |
parent | 013edfd2466c787fd4bbb865313ceef52e277ea5 (diff) | |
download | FreeBSD-src-da3e415da131b557ea4271ab70a0701834376b51.zip FreeBSD-src-da3e415da131b557ea4271ab70a0701834376b51.tar.gz |
Get getopt interface from unistd.h
Diffstat (limited to 'usr.sbin/i4b')
-rw-r--r-- | usr.sbin/i4b/isdndecode/main.c | 4 | ||||
-rw-r--r-- | usr.sbin/i4b/isdntel/main.c | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/usr.sbin/i4b/isdndecode/main.c b/usr.sbin/i4b/isdndecode/main.c index c4c9e7f..76afab1 100644 --- a/usr.sbin/i4b/isdndecode/main.c +++ b/usr.sbin/i4b/isdndecode/main.c @@ -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]; diff --git a/usr.sbin/i4b/isdntel/main.c b/usr.sbin/i4b/isdntel/main.c index da5ec82..6bea966 100644 --- a/usr.sbin/i4b/isdntel/main.c +++ b/usr.sbin/i4b/isdntel/main.c @@ -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) |