summaryrefslogtreecommitdiff
path: root/libexec/telnetd
diff options
context:
space:
mode:
authorenami <enami@NetBSD.org>1997-10-08 01:04:31 +0000
committerenami <enami@NetBSD.org>1997-10-08 01:04:31 +0000
commit7c92c8b774d9b73c28d08db5cf31844533e64e89 (patch)
tree214bc8d4367a54a982bdb8804d675a196418b40a /libexec/telnetd
parentcd2bc25e31089068fee4febc77716d03619cb96c (diff)
Compare a return value of getopt() against -1 instead of EOF.
Diffstat (limited to 'libexec/telnetd')
-rw-r--r--libexec/telnetd/telnetd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/telnetd/telnetd.c b/libexec/telnetd/telnetd.c
index 216e5d9ff8f..7d14caf107a 100644
--- a/libexec/telnetd/telnetd.c
+++ b/libexec/telnetd/telnetd.c
@@ -1,4 +1,4 @@
-/* $NetBSD: telnetd.c,v 1.6 1996/03/20 04:25:57 tls Exp $ */
+/* $NetBSD: telnetd.c,v 1.7 1997/10/08 01:08:08 enami Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -43,7 +43,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)telnetd.c 8.4 (Berkeley) 5/30/95";
#else
-static char rcsid[] = "$NetBSD: telnetd.c,v 1.6 1996/03/20 04:25:57 tls Exp $";
+static char rcsid[] = "$NetBSD: telnetd.c,v 1.7 1997/10/08 01:08:08 enami Exp $";
#endif
#endif /* not lint */
@@ -194,7 +194,7 @@ main(argc, argv)
highpty = getnpty();
#endif /* CRAY */
- while ((ch = getopt(argc, argv, valid_opts)) != EOF) {
+ while ((ch = getopt(argc, argv, valid_opts)) != -1) {
switch(ch) {
#ifdef AUTHENTICATION