summaryrefslogtreecommitdiff
path: root/src/su.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-11-12 11:11:54 +0100
committerJim Meyering <meyering@redhat.com>2008-12-21 17:49:58 +0100
commit22a2a43021e8e82226d4b33189e77673b7326c95 (patch)
treecd36b87521ab52d53ac12d930fddb698867727f6 /src/su.c
parent4000c35ae3546aca05ece49ffa01ba2a763000b0 (diff)
downloadcoreutils-22a2a43021e8e82226d4b33189e77673b7326c95.tar.xz
build: add configure-time --enable-gcc-warnings option; avoid warnings
* bootstrap.conf (gnulib_modules): Add "warnings" module. * configure.ac: Add --enable-gcc-warnings, derived from code in bison. * src/Makefile.am (AM_CFLAGS): Set to $(WARN_CFLAGS) # $(WERROR_CFLAGS) * lib/Makefile.am (AM_CFLAGS): Change spelling to $(WARN_CFLAGS) Don't use $(WERROR_CFLAGS), yet. * src/system.h (usage): Declare. * src/base64.c (usage): Declare to be global, for consistency. * src/timeout.c (usage): Likewise. * src/truncate.c (usage): Likewise. * src/getlimits.c (usage): Likewise. * src/pinky.c (ttyname): Declare with prototype, rather than an empty argument list. * src/who.c (ttyname): Likewise. * src/su.c (crypt, getusershell, setusershell, endusershell): Likewise.
Diffstat (limited to 'src/su.c')
-rw-r--r--src/su.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/su.c b/src/su.c
index f6b61f773..9f99b7871 100644
--- a/src/su.c
+++ b/src/su.c
@@ -118,10 +118,10 @@
/* The user to become if none is specified. */
#define DEFAULT_USER "root"
-char *crypt ();
-char *getusershell ();
-void endusershell ();
-void setusershell ();
+char *crypt (char const *key, char const *salt);
+char *getusershell (void);
+void endusershell (void);
+void setusershell (void);
extern char **environ;