summaryrefslogtreecommitdiff
path: root/sysdeps/posix/gethostname.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/posix/gethostname.c')
-rw-r--r--sysdeps/posix/gethostname.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sysdeps/posix/gethostname.c b/sysdeps/posix/gethostname.c
index 49177059c6..6ce54e933b 100644
--- a/sysdeps/posix/gethostname.c
+++ b/sysdeps/posix/gethostname.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992-2015 Free Software Foundation, Inc.
+/* Copyright (C) 1992-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -24,9 +24,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)
{
struct utsname buf;
size_t node_len;