aboutsummaryrefslogtreecommitdiffstats
path: root/src/su.c
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-09-21 10:28:01 -0600
committerEric Blake <ebb9@byu.net>2009-09-21 20:42:16 -0600
commit32f987af1274d3ed53244564ab537dce8e330e0a (patch)
tree1bb1d6243ef12c284fc18d543bc60036753482e6 /src/su.c
parentdoc: ls: add an article, "the" (diff)
downloadcoreutils-32f987af1274d3ed53244564ab537dce8e330e0a.tar.gz
coreutils-32f987af1274d3ed53244564ab537dce8e330e0a.zip
build: avoid compiler warnings on cygwin 1.5
* src/copy.c (utimens_symlink): Avoid unused variables. * src/su.c (getusershell): Rely on gnulib for prototype.
Diffstat (limited to 'src/su.c')
-rw-r--r--src/su.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/su.c b/src/su.c
index ec50a3b5a..25b883814 100644
--- a/src/su.c
+++ b/src/su.c
@@ -53,16 +53,9 @@
#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
@@ -119,9 +112,6 @@
#define DEFAULT_USER "root"
char *crypt (char const *key, char const *salt);
-char *getusershell (void);
-void endusershell (void);
-void setusershell (void);
extern char **environ;