From a20147282b620d918d3874c726c009777a1f2f58 Mon Sep 17 00:00:00 2001 From: robin Date: Mon, 23 Dec 1996 13:31:40 +0000 Subject: [PATCH] Eliminate assignment/truth-value compiler warning. --- libexec/telnetd/telnetd.c | 6 +++--- 1 file 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); -- 2.20.1