]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: avoid compiler warnings on cygwin 1.5
authorEric Blake <ebb9@byu.net>
Mon, 21 Sep 2009 16:28:01 +0000 (10:28 -0600)
committerEric Blake <ebb9@byu.net>
Tue, 22 Sep 2009 02:42:16 +0000 (20:42 -0600)
* src/copy.c (utimens_symlink): Avoid unused variables.
* src/su.c (getusershell): Rely on gnulib for prototype.

src/copy.c
src/su.c

index b7d113fbeabf768b25539137838b893ec7f83ecc..067b1e7226b847633c9143658da44fdabeedbc36 100644 (file)
@@ -132,6 +132,9 @@ utimens_symlink (char const *file, struct timespec const *timespec)
      utimensat fails with ENOSYS.  Ignore that.  */
   if (err && errno == ENOSYS)
     err = 0;
+#else
+  (void) file;
+  (void) timespec;
 #endif
 
   return err;
index ec50a3b5a0bc7cfd764480e46b0edd621183d773..25b883814ff66bf7d0e49466a95075c35da2df1e 100644 (file)
--- a/src/su.c
+++ b/src/su.c
 #include <pwd.h>
 #include <grp.h>
 
-/* Hide any system prototype for getusershell.
-   This is necessary because some Cray systems have a conflicting
-   prototype (returning `int') in <unistd.h>.  */
-#define getusershell _getusershell_sys_proto_
-
 #include "system.h"
 #include "getpass.h"
 
-#undef getusershell
-
 #if HAVE_SYSLOG_H && HAVE_SYSLOG
 # include <syslog.h>
 #else
 #define DEFAULT_USER "root"
 
 char *crypt (char const *key, char const *salt);
-char *getusershell (void);
-void endusershell (void);
-void setusershell (void);
 
 extern char **environ;