diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2000-01-29 16:07:09 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2000-01-29 16:07:09 +0000 |
commit | fa86c48697a98ad6e344346bd7818af08906336b (patch) | |
tree | 207c47a9514c2e0b8e57d9cd1da6c05d89fff9ad | |
parent | 36c98549433ec4bf6a664ab621951cae4adcfc67 (diff) |
remove #if 0'ed portion (not necessary due to use of getaddrinfo)
-rw-r--r-- | usr.bin/telnet/commands.c | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/usr.bin/telnet/commands.c b/usr.bin/telnet/commands.c index 0cd89fb54ce..8d8804a23ae 100644 --- a/usr.bin/telnet/commands.c +++ b/usr.bin/telnet/commands.c @@ -1,4 +1,4 @@ -/* $OpenBSD: commands.c,v 1.25 1999/12/20 09:43:01 itojun Exp $ */ +/* $OpenBSD: commands.c,v 1.26 2000/01/29 16:07:08 itojun Exp $ */ /* $NetBSD: commands.c,v 1.14 1996/03/24 22:03:48 jtk Exp $ */ /* @@ -2382,37 +2382,6 @@ tn(argc, argv) return 0; } } -#if 0 - if (portp) { - if (*portp == '-') { - portp++; - telnetport = 1; - } else - telnetport = 0; - port = atoi(portp); - if (port == 0) { - sp = getservbyname(portp, "tcp"); - if (sp) - port = sp->s_port; - else { - printf("%s: bad port number\r\n", portp); - return 0; - } - } else { - port = htons(port); - } - } else { - if (sp == 0) { - sp = getservbyname("telnet", "tcp"); - if (sp == 0) { - fprintf(stderr, "telnet: tcp/telnet: unknown service\r\n"); - return 0; - } - port = sp->s_port; - } - telnetport = 1; - } -#endif net = -1; retry = 0; |