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_fbtab.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_fbtab.c')
-rw-r--r-- | usr.bin/login/login_fbtab.c | 12 |
1 files changed, 2 insertions, 10 deletions
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; |