diff options
author | Jim Meyering <meyering@redhat.com> | 2008-12-01 07:27:55 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-12-01 17:40:27 +0100 |
commit | 21eb87e6eafee9111ac2da32cfbfb9ee34a4b465 (patch) | |
tree | f9e7bc9cbb778dc49c74de303dcc957d4d25b45a /src | |
parent | 7ef56a26fd911e551f1bd9d2783afb7fbed6c669 (diff) | |
download | coreutils-21eb87e6eafee9111ac2da32cfbfb9ee34a4b465.tar.xz |
* src/hostname.c (sethostname) [!HAVE_SETHOSTNAME]: Remove declaration.
Diffstat (limited to 'src')
-rw-r--r-- | src/hostname.c | 6 |
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. */ |