changeset 6799:1f45c2d4ff2c

Comment change.
author Richard M. Stallman <rms@gnu.org>
date Mon, 11 Apr 1994 20:50:40 +0000
parents 2594f541e694
children 34cc2fd97a9e
files src/sysdep.c
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/sysdep.c	Mon Apr 11 20:40:58 1994 +0000
+++ b/src/sysdep.c	Mon Apr 11 20:50:40 1994 +0000
@@ -2009,6 +2009,8 @@
 	    if (hp)
 	      {
 		char *fqdn = hp->h_name;
+		char *p;
+
 		if (!index (fqdn, '.'))
 		  {
 		    /* We still don't have a fully qualified domain name.
@@ -2021,6 +2023,18 @@
 		  }
 		hostname = (char *) xrealloc (hostname, strlen (fqdn) + 1);
 		strcpy (hostname, fqdn);
+#if 0
+		/* Convert the host name to lower case.  */
+		/* Using ctype.h here would introduce a possible locale
+		   dependence that is probably wrong for hostnames.  */
+		p = hostname
+		while (*p)
+		  {
+		    if (*p >= 'A' && *p <= 'Z')
+		      *p += 'a' - 'A';
+		    p++;
+		  }
+#endif
 	      }
 	  }
 #endif /* HAVE_SOCKETS */