summaryrefslogtreecommitdiff
path: root/usr.bin/telnet/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/telnet/commands.c')
-rw-r--r--usr.bin/telnet/commands.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/usr.bin/telnet/commands.c b/usr.bin/telnet/commands.c
index b97025f790d..f45d8533a34 100644
--- a/usr.bin/telnet/commands.c
+++ b/usr.bin/telnet/commands.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: commands.c,v 1.77 2015/11/13 16:53:46 deraadt Exp $ */
+/* $OpenBSD: commands.c,v 1.78 2015/11/13 17:01:12 deraadt Exp $ */
/* $NetBSD: commands.c,v 1.14 1996/03/24 22:03:48 jtk Exp $ */
/*
@@ -429,16 +429,6 @@ lclchars(int unused)
}
static int
-togdebug(int unused)
-{
- if (net > 0 &&
- (setsockopt(net, SOL_SOCKET, SO_DEBUG, &debug, sizeof(debug))) == -1) {
- perror("setsockopt (SO_DEBUG)");
- }
- return 1;
-}
-
-static int
togcrlf(int unused)
{
if (crlf) {
@@ -605,11 +595,6 @@ static struct togglelist Togglelist[] = {
&localchars,
"recognize certain control characters" },
{ " ", "", 0, 0 }, /* empty line */
- { "debug",
- "debugging",
- togdebug,
- &debug,
- "turn on socket level debugging" },
{ "netdata",
"printing of hexadecimal network data (debugging)",
0,
@@ -1899,14 +1884,6 @@ tn(int argc, char *argv[])
break;
}
- if (debug) {
- int one = 1;
-
- if (setsockopt(net, SOL_SOCKET, SO_DEBUG, &one,
- sizeof(one)) < 0)
- perror("setsockopt (SO_DEBUG)");
- }
-
if (connect(net, res->ai_addr, res->ai_addrlen) < 0) {
char hbuf[NI_MAXHOST];