summaryrefslogtreecommitdiff
path: root/src/sysdep.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-04-11 20:50:40 +0000
committerRichard M. Stallman <rms@gnu.org>1994-04-11 20:50:40 +0000
commitab1649fe758e95bfed2b98fd7ebbeaa4ff7320fc (patch)
tree555347c83d856cd95ed37597e1d51ab8c1f0ca1f /src/sysdep.c
parent9854c615ccea309b553c6296c3fc6b9434548de1 (diff)
downloademacs-ab1649fe758e95bfed2b98fd7ebbeaa4ff7320fc.tar.gz
Comment change.
Diffstat (limited to 'src/sysdep.c')
-rw-r--r--src/sysdep.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index 455ebacae23..9b5ee10749c 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -2009,6 +2009,8 @@ get_system_name ()
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 @@ get_system_name ()
}
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 */