]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
* src/hostname.c (sethostname) [!HAVE_SETHOSTNAME]: Remove declaration.
authorJim Meyering <meyering@redhat.com>
Mon, 1 Dec 2008 06:27:55 +0000 (07:27 +0100)
committerJim Meyering <meyering@redhat.com>
Mon, 1 Dec 2008 16:40:27 +0000 (17:40 +0100)
src/hostname.c

index b325c27539c3fa5334ef84339bdad41a11fb26d5..89cc568e832589221096ce72ec51113db9324eed 100644 (file)
 
 #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. */