summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pcvt
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2000-12-11 21:09:29 +0000
committerimp <imp@FreeBSD.org>2000-12-11 21:09:29 +0000
commitbfe09706cdd42f9f0f606a08027a33d395e143ac (patch)
tree7464371325afe169faaa1911af5b7ce84021e4dc /usr.sbin/pcvt
parent86b705b83b56a996243970cf50cb5f4aa8e2edf3 (diff)
downloadFreeBSD-src-bfe09706cdd42f9f0f606a08027a33d395e143ac.zip
FreeBSD-src-bfe09706cdd42f9f0f606a08027a33d395e143ac.tar.gz
getopt interface is defined in <unistd.h> so use that in preference to externs.
Diffstat (limited to 'usr.sbin/pcvt')
-rw-r--r--usr.sbin/pcvt/cursor/cursor.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.sbin/pcvt/cursor/cursor.c b/usr.sbin/pcvt/cursor/cursor.c
index e4da01a..2798f57 100644
--- a/usr.sbin/pcvt/cursor/cursor.c
+++ b/usr.sbin/pcvt/cursor/cursor.c
@@ -48,6 +48,7 @@ static char *id =
#include <fcntl.h>
#include <sys/stat.h>
#include <machine/pcvt_ioctl.h>
+#include <unistd.h>
#include <paths.h>
#define DEFAULTFD 0
@@ -56,10 +57,6 @@ main(argc,argv)
int argc;
char *argv[];
{
- extern int optind;
- extern int opterr;
- extern char *optarg;
-
struct cursorshape cursorshape;
int fd;
int c;
OpenPOWER on IntegriCloud