summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2005-01-04 03:57:20 +0000
committerdelphij <delphij@FreeBSD.org>2005-01-04 03:57:20 +0000
commit00c462b83a540779500907f2f5ad854d9ff7c70c (patch)
treedacaf03b67bbba93e64204c3860303c1169fec3c /usr.sbin
parent985415fefc94c4c0cdd2234db820330801ecde00 (diff)
downloadFreeBSD-src-00c462b83a540779500907f2f5ad854d9ff7c70c.zip
FreeBSD-src-00c462b83a540779500907f2f5ad854d9ff7c70c.tar.gz
nologin(8) does not seem to require any command line parameters,
so remove argc and argv from main() argument. At the same time, user and tt is not likely to be changed during execution so mark them const. This commit should guarantee nologin to pass WARNS=6. Tested on: i386 MFC After: 1 month
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/nologin/nologin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/nologin/nologin.c b/usr.sbin/nologin/nologin.c
index a13c517..6522aa6 100644
--- a/usr.sbin/nologin/nologin.c
+++ b/usr.sbin/nologin/nologin.c
@@ -34,9 +34,9 @@ __FBSDID("$FreeBSD$");
#define MESSAGE "This account is currently not available.\n"
int
-main(int argc, char *argv[])
+main(void)
{
- char *user, *tt;
+ const char *user, *tt;
if ((tt = ttyname(0)) == NULL)
tt = "UNKNOWN";
OpenPOWER on IntegriCloud