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 | |
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')
-rw-r--r-- | usr.bin/login/login.c | 8 | ||||
-rw-r--r-- | usr.bin/login/login_fbtab.c | 12 |
2 files changed, 6 insertions, 14 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) { diff --git a/usr.bin/login/login_fbtab.c b/usr.bin/login/login_fbtab.c index f6111a1..afa320f 100644 --- a/usr.bin/login/login_fbtab.c +++ b/usr.bin/login/login_fbtab.c @@ -81,10 +81,7 @@ static void login_protect(const char *, char *, int, uid_t, gid_t); /* login_fbtab - apply protections specified in /etc/fbtab or logindevperm */ void -login_fbtab(tty, uid, gid) -char *tty; -uid_t uid; -gid_t gid; +login_fbtab(char *tty, uid_t uid, gid_t gid) { FILE *fp; char buf[BUFSIZ]; @@ -124,12 +121,7 @@ gid_t gid; /* login_protect - protect one device entry */ void -login_protect(table, pattern, mask, uid, gid) -const char *table; -char *pattern; -int mask; -uid_t uid; -gid_t gid; +login_protect(const char *table, char *pattern, int mask, uid_t uid, gid_t gid) { glob_t gl; char *path; |