bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

avoid a warning in hostname.c


From: Jim Meyering
Subject: avoid a warning in hostname.c
Date: Mon, 01 Dec 2008 18:09:49 +0100

I also pushed another little change:

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

commit 21eb87e6eafee9111ac2da32cfbfb9ee34a4b465
Author: Jim Meyering <address@hidden>
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. */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]