summaryrefslogtreecommitdiff
path: root/sysdeps/mach/hurd/gethostname.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mach/hurd/gethostname.c')
-rw-r--r--sysdeps/mach/hurd/gethostname.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sysdeps/mach/hurd/gethostname.c b/sysdeps/mach/hurd/gethostname.c
index a1fe95e7e7..f3fb9dd283 100644
--- a/sysdeps/mach/hurd/gethostname.c
+++ b/sysdeps/mach/hurd/gethostname.c
@@ -22,9 +22,7 @@
The result is null-terminated if LEN is large enough for the full
name and the terminator. */
int
-__gethostname (name, len)
- char *name;
- size_t len;
+__gethostname (char *name, size_t len)
{
/* The host name is just the contents of the file /etc/hostname. */
ssize_t n = _hurd_get_host_config ("/etc/hostname", name, len);