summaryrefslogtreecommitdiff
path: root/libexec/telnetd
diff options
context:
space:
mode:
authorrobin <robin@cvs.openbsd.org>1996-12-23 13:31:41 +0000
committerrobin <robin@cvs.openbsd.org>1996-12-23 13:31:41 +0000
commit02bedb89db7dcc51d4c7b17f87ba4234c19c625f (patch)
tree8aa39aa6a245d0c801f7f46c509d6ee97be06aa8 /libexec/telnetd
parent244ae4f36d8485d801b276c564b0912f8970db1a (diff)
Eliminate assignment/truth-value compiler warning.
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 a86a0aae412..8971d6736f5 100644
--- a/libexec/telnetd/telnetd.c
+++ b/libexec/telnetd/telnetd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: telnetd.c,v 1.4 1996/08/27 10:25:28 deraadt Exp $ */
+/* $OpenBSD: telnetd.c,v 1.5 1996/12/23 13:31:40 robin Exp $ */
/* $NetBSD: telnetd.c,v 1.6 1996/03/20 04:25:57 tls Exp $ */
/*
@@ -45,7 +45,7 @@ static char copyright[] =
static char sccsid[] = "@(#)telnetd.c 8.4 (Berkeley) 5/30/95";
static char rcsid[] = "$NetBSD: telnetd.c,v 1.5 1996/02/28 20:38:23 thorpej Exp $";
#else
-static char rcsid[] = "$OpenBSD: telnetd.c,v 1.4 1996/08/27 10:25:28 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: telnetd.c,v 1.5 1996/12/23 13:31:40 robin Exp $";
#endif
#endif /* not lint */
@@ -383,7 +383,7 @@ main(argc, argv)
usage();
/* NOT REACHED */
} else if (argc == 1) {
- if (sp = getservbyname(*argv, "tcp")) {
+ if ((sp = getservbyname(*argv, "tcp"))) {
sin.sin_port = sp->s_port;
} else {
sin.sin_port = atoi(*argv);