Mercurial > emacs
comparison src/sysdep.c @ 11800:a2f009e1b85b
(init_system_name): Clean up signedness mismatch.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Fri, 12 May 1995 06:52:50 +0000 |
parents | d7089b2620fb |
children | 00a37f7ba63c |
comparison
equal
deleted
inserted
replaced
11799:4a04c7799790 | 11800:a2f009e1b85b |
---|---|
2115 #ifndef HAVE_GETHOSTNAME | 2115 #ifndef HAVE_GETHOSTNAME |
2116 struct utsname uts; | 2116 struct utsname uts; |
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 |
2124 again. Apparently, the only indication gethostname gives of | 2124 again. Apparently, the only indication gethostname gives of |
2125 whether the buffer was large enough is the presence or absence | 2125 whether the buffer was large enough is the presence or absence |