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 () uname (&uts); Vsystem_name = build_string (uts.nodename); #else /* HAVE_GETHOSTNAME */ - int hostname_size = 256; + unsigned int hostname_size = 256; char *hostname = (char *) alloca (hostname_size); /* Try to get the host name; if the buffer is too short, try