summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pcvt/userkeys/vt220keys.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2001-03-01 06:22:46 +0000
committerimp <imp@FreeBSD.org>2001-03-01 06:22:46 +0000
commitf46c3747188f201a4ef26a8c627ae3c996af84be (patch)
tree9d147642dee31de028765f8a099be643234d5945 /usr.sbin/pcvt/userkeys/vt220keys.c
parentd9aa3d164d96efb68aa48555fe3f64d7b68b4c65 (diff)
downloadFreeBSD-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.c5
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 */
OpenPOWER on IntegriCloud