summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-12-01 07:27:55 +0100
committerJim Meyering <meyering@redhat.com>2008-12-01 17:40:27 +0100
commit21eb87e6eafee9111ac2da32cfbfb9ee34a4b465 (patch)
treef9e7bc9cbb778dc49c74de303dcc957d4d25b45a /src
parent7ef56a26fd911e551f1bd9d2783afb7fbed6c669 (diff)
downloadcoreutils-21eb87e6eafee9111ac2da32cfbfb9ee34a4b465.tar.xz
* src/hostname.c (sethostname) [!HAVE_SETHOSTNAME]: Remove declaration.
Diffstat (limited to 'src')
-rw-r--r--src/hostname.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/hostname.c b/src/hostname.c
index b325c2753..89cc568e8 100644
--- a/src/hostname.c
+++ b/src/hostname.c
@@ -32,15 +32,11 @@
#define AUTHORS proper_name ("Jim Meyering")
-#if HAVE_SETHOSTNAME && !defined sethostname
-int sethostname ();
-#endif
-
#if !defined HAVE_SETHOSTNAME && defined HAVE_SYSINFO && \
defined HAVE_SYS_SYSTEMINFO_H
# include <sys/systeminfo.h>
-int
+static int
sethostname (char *name, size_t namelen)
{
/* Using sysinfo() is the SVR4 mechanism to set a hostname. */