aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2000-11-26 21:37:51 +0000
committerKris Kennaway <kris@FreeBSD.org>2000-11-26 21:37:51 +0000
commitf6fd83ed2703ccf18b937c09c49ffd7414fd22e1 (patch)
tree32dc365640e49f57d4774a909af8850949e4082c
parentd352c316d416848806f67386cb5a8798d67a6cf7 (diff)
downloadsrc-f6fd83ed2703ccf18b937c09c49ffd7414fd22e1.tar.gz
src-f6fd83ed2703ccf18b937c09c49ffd7414fd22e1.zip
Correct definition of MAXHOSTNAMELEN in ifdef'ed code.
Submitted by: Edwin Groothuis <mavetju@chello.nl> PR: bin/22787
Notes
Notes: svn path=/head/; revision=69223
-rw-r--r--contrib/telnet/telnet/commands.c2
-rw-r--r--contrib/telnet/telnetd/telnetd.c2
-rw-r--r--crypto/telnet/telnet/commands.c2
-rw-r--r--crypto/telnet/telnetd/telnetd.c2
-rw-r--r--libexec/telnetd/telnetd.c2
-rw-r--r--usr.bin/telnet/commands.c2
6 files changed, 6 insertions, 6 deletions
diff --git a/contrib/telnet/telnet/commands.c b/contrib/telnet/telnet/commands.c
index 2c7becafc1f7..4a360df106eb 100644
--- a/contrib/telnet/telnet/commands.c
+++ b/contrib/telnet/telnet/commands.c
@@ -89,7 +89,7 @@ static const char sccsid[] = "@(#)commands.c 8.4 (Berkeley) 5/30/95";
#ifndef MAXHOSTNAMELEN
-#define MAXHOSTNAMELEN 64
+#define MAXHOSTNAMELEN 256
#endif MAXHOSTNAMELEN
#if defined(IPPROTO_IP) && defined(IP_TOS)
diff --git a/contrib/telnet/telnetd/telnetd.c b/contrib/telnet/telnetd/telnetd.c
index 6d7bcde5fc4f..a5a7a035a6fe 100644
--- a/contrib/telnet/telnetd/telnetd.c
+++ b/contrib/telnet/telnetd/telnetd.c
@@ -823,7 +823,7 @@ terminaltypeok(s)
}
#ifndef MAXHOSTNAMELEN
-#define MAXHOSTNAMELEN 64
+#define MAXHOSTNAMELEN 256
#endif /* MAXHOSTNAMELEN */
char *hostname;
diff --git a/crypto/telnet/telnet/commands.c b/crypto/telnet/telnet/commands.c
index 2c7becafc1f7..4a360df106eb 100644
--- a/crypto/telnet/telnet/commands.c
+++ b/crypto/telnet/telnet/commands.c
@@ -89,7 +89,7 @@ static const char sccsid[] = "@(#)commands.c 8.4 (Berkeley) 5/30/95";
#ifndef MAXHOSTNAMELEN
-#define MAXHOSTNAMELEN 64
+#define MAXHOSTNAMELEN 256
#endif MAXHOSTNAMELEN
#if defined(IPPROTO_IP) && defined(IP_TOS)
diff --git a/crypto/telnet/telnetd/telnetd.c b/crypto/telnet/telnetd/telnetd.c
index 6d7bcde5fc4f..a5a7a035a6fe 100644
--- a/crypto/telnet/telnetd/telnetd.c
+++ b/crypto/telnet/telnetd/telnetd.c
@@ -823,7 +823,7 @@ terminaltypeok(s)
}
#ifndef MAXHOSTNAMELEN
-#define MAXHOSTNAMELEN 64
+#define MAXHOSTNAMELEN 256
#endif /* MAXHOSTNAMELEN */
char *hostname;
diff --git a/libexec/telnetd/telnetd.c b/libexec/telnetd/telnetd.c
index 7216cf72c14e..ac0260e62962 100644
--- a/libexec/telnetd/telnetd.c
+++ b/libexec/telnetd/telnetd.c
@@ -775,7 +775,7 @@ terminaltypeok(s)
}
#ifndef MAXHOSTNAMELEN
-#define MAXHOSTNAMELEN 64
+#define MAXHOSTNAMELEN 256
#endif /* MAXHOSTNAMELEN */
char *hostname;
diff --git a/usr.bin/telnet/commands.c b/usr.bin/telnet/commands.c
index c6b35e2b3511..5079dc19b845 100644
--- a/usr.bin/telnet/commands.c
+++ b/usr.bin/telnet/commands.c
@@ -81,7 +81,7 @@ static char sccsid[] = "@(#)commands.c 8.2 (Berkeley) 12/15/93";
#include <netinet/ip6.h>
#ifndef MAXHOSTNAMELEN
-#define MAXHOSTNAMELEN 64
+#define MAXHOSTNAMELEN 256
#endif MAXHOSTNAMELEN
#if defined(IPPROTO_IP) && defined(IP_TOS)