summaryrefslogtreecommitdiffstats
path: root/usr.bin/tput/tput.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2000-09-04 06:09:54 +0000
committerimp <imp@FreeBSD.org>2000-09-04 06:09:54 +0000
commit3c95f9ccdee03bbd5201ce0c06d795f6b132e266 (patch)
tree4e524d498db186c036b4495d56fd8d77c6a9d266 /usr.bin/tput/tput.c
parent180527062b861cb7c3ec4718c0522abe8677950a (diff)
downloadFreeBSD-src-3c95f9ccdee03bbd5201ce0c06d795f6b132e266.zip
FreeBSD-src-3c95f9ccdee03bbd5201ce0c06d795f6b132e266.tar.gz
getopt and friends are declared in <unistd.h>
getopt returns -1 not EOF.
Diffstat (limited to 'usr.bin/tput/tput.c')
-rw-r--r--usr.bin/tput/tput.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/tput/tput.c b/usr.bin/tput/tput.c
index 2eb3e46..67a6b53 100644
--- a/usr.bin/tput/tput.c
+++ b/usr.bin/tput/tput.c
@@ -38,7 +38,11 @@ static char copyright[] =
#endif /* not lint */
#ifndef lint
+#if 0
static char sccsid[] = "@(#)tput.c 8.2 (Berkeley) 3/19/94";
+#endif
+static char rcsid[] =
+"$FreeBSD$";
#endif /* not lint */
#include <termios.h>
@@ -61,8 +65,6 @@ main(argc, argv)
int argc;
char **argv;
{
- extern char *optarg;
- extern int optind;
int ch, exitval, n;
char *cptr, *p, *term, buf[1024], tbuf[1024];
OpenPOWER on IntegriCloud