From d9109fa58c81b27a873b342f5ca427227a84d6c1 Mon Sep 17 00:00:00 2001 From: jca Date: Sun, 25 Oct 2015 14:42:02 +0000 Subject: [PATCH] Kill unused local var, and reorder while here. --- usr.bin/telnet/commands.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/usr.bin/telnet/commands.c b/usr.bin/telnet/commands.c index 396a16c6c1e..18533121a0a 100644 --- a/usr.bin/telnet/commands.c +++ b/usr.bin/telnet/commands.c @@ -1,4 +1,4 @@ -/* $OpenBSD: commands.c,v 1.72 2015/10/25 14:11:37 jca Exp $ */ +/* $OpenBSD: commands.c,v 1.73 2015/10/25 14:42:02 jca Exp $ */ /* $NetBSD: commands.c,v 1.14 1996/03/24 22:03:48 jtk Exp $ */ /* @@ -1848,15 +1848,10 @@ int tn(int argc, char *argv[]) { struct addrinfo hints, *res, *res0; - int error; - struct sockaddr_in sin; char *cmd, *hostp = 0, *portp = 0, *user = 0, *aliasp = 0; - int retry; + int error, retry; const int niflags = NI_NUMERICHOST; - /* clear the socket address prior to use */ - memset(&sin, 0, sizeof(sin)); - if (connected) { printf("?Already connected to %s\r\n", hostname); return 0; -- 2.20.1