From: robin Date: Mon, 23 Dec 1996 13:31:40 +0000 (+0000) Subject: Eliminate assignment/truth-value compiler warning. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a20147282b620d918d3874c726c009777a1f2f58;p=openbsd Eliminate assignment/truth-value compiler warning. --- 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);