I also pushed another little change:

http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=21eb87e6eafee9111ac2da32cfbfb9ee34a4b465

commit 21eb87e6eafee9111ac2da32cfbfb9ee34a4b465
Author: Jim Meyering <[EMAIL PROTECTED]>
Date:   Mon Dec 1 07:27:55 2008 +0100

    * src/hostname.c (sethostname) [!HAVE_SETHOSTNAME]: Remove declaration.

diff --git a/src/hostname.c b/src/hostname.c
index b325c27..89cc568 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. */


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to