diff options
author | ed <ed@FreeBSD.org> | 2010-01-02 10:09:20 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2010-01-02 10:09:20 +0000 |
commit | b2f13324285e9f616da10d4c1fb2d101723c07ea (patch) | |
tree | a138378761890dfbbb922442dc23d824a9740d2d /usr.bin/login/login.c | |
parent | 09818ac28e064437e7ab61eb0cd30245d17d27ea (diff) | |
download | FreeBSD-src-b2f13324285e9f616da10d4c1fb2d101723c07ea.zip FreeBSD-src-b2f13324285e9f616da10d4c1fb2d101723c07ea.tar.gz |
ANSIfy various tools in usr.bin/.
Most of these tools properly build at WARNS=6, except for their K&R
function declarations. Fix this, so we can bump WARNS as well.
Diffstat (limited to 'usr.bin/login/login.c')
-rw-r--r-- | usr.bin/login/login.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c index 2a42924..da182aa 100644 --- a/usr.bin/login/login.c +++ b/usr.bin/login/login.c @@ -737,7 +737,7 @@ auth_pam(void) * Export any environment variables PAM modules may have set */ static void -export_pam_environment() +export_pam_environment(void) { char **pam_env; char **pp; @@ -786,7 +786,7 @@ export(const char *s) } static void -usage() +usage(void) { (void)fprintf(stderr, "usage: login [-fp] [-h hostname] [username]\n"); @@ -797,7 +797,7 @@ usage() * Prompt user and read login name from stdin. */ static char * -getloginname() +getloginname(void) { char *nbuf, *p; int ch; @@ -941,7 +941,7 @@ pam_syslog(const char *msg) * Shut down PAM */ static void -pam_cleanup() +pam_cleanup(void) { if (pamh != NULL) { |