diff options
author | imp <imp@FreeBSD.org> | 2001-03-01 06:22:46 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2001-03-01 06:22:46 +0000 |
commit | f46c3747188f201a4ef26a8c627ae3c996af84be (patch) | |
tree | 9d147642dee31de028765f8a099be643234d5945 /usr.sbin/pcvt/userkeys/vt220keys.c | |
parent | d9aa3d164d96efb68aa48555fe3f64d7b68b4c65 (diff) | |
download | FreeBSD-src-f46c3747188f201a4ef26a8c627ae3c996af84be.zip FreeBSD-src-f46c3747188f201a4ef26a8c627ae3c996af84be.tar.gz |
Include <unistd.h> for getopt's interface rather than declare things
individually here.
Diffstat (limited to 'usr.sbin/pcvt/userkeys/vt220keys.c')
-rw-r--r-- | usr.sbin/pcvt/userkeys/vt220keys.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.sbin/pcvt/userkeys/vt220keys.c b/usr.sbin/pcvt/userkeys/vt220keys.c index ac9c3fc..9d84473 100644 --- a/usr.sbin/pcvt/userkeys/vt220keys.c +++ b/usr.sbin/pcvt/userkeys/vt220keys.c @@ -31,6 +31,7 @@ $FreeBSD$ #include <stdlib.h> #include <string.h> #include <ctype.h> +#include <unistd.h> /* * The default toupper() macro is stupid, will toupper anything @@ -76,10 +77,6 @@ main(argc,argv) int argc; char *argv[]; { - /* these are defined in the getopt routine */ - extern char *optarg; /* argument give to an option */ - extern int optind; /* argv index after option processing */ - int option; /* option character returned by getopt */ int initf = 0; /* read initialization file */ int lockf = 0; /* lock keys after loading strings */ |