aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sysdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index c971cb32242..742582d5382 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -2117,7 +2117,7 @@ init_system_name ()
2117 uname (&uts); 2117 uname (&uts);
2118 Vsystem_name = build_string (uts.nodename); 2118 Vsystem_name = build_string (uts.nodename);
2119#else /* HAVE_GETHOSTNAME */ 2119#else /* HAVE_GETHOSTNAME */
2120 int hostname_size = 256; 2120 unsigned int hostname_size = 256;
2121 char *hostname = (char *) alloca (hostname_size); 2121 char *hostname = (char *) alloca (hostname_size);
2122 2122
2123 /* Try to get the host name; if the buffer is too short, try 2123 /* Try to get the host name; if the buffer is too short, try