summaryrefslogtreecommitdiffstats
path: root/usr.bin/telnet
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/telnet
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/telnet')
-rw-r--r--usr.bin/telnet/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/telnet/main.c b/usr.bin/telnet/main.c
index 9126738..657f560 100644
--- a/usr.bin/telnet/main.c
+++ b/usr.bin/telnet/main.c
@@ -43,6 +43,8 @@ static char copyright[] =
static char sccsid[] = "@(#)main.c 8.2 (Berkeley) 12/15/93";
#endif /* not lint */
+#include <unistd.h>
+#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
@@ -125,10 +127,8 @@ main(argc, argv)
int argc;
char *argv[];
{
- extern char *optarg;
- extern int optind;
int ch;
- char *user, *strrchr();
+ char *user;
char *src_addr = NULL;
#ifdef FORWARD
extern int forward_flags;
OpenPOWER on IntegriCloud