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
This commit is contained in:
Xin LI 2005-01-04 03:57:20 +00:00
parent 9e3daa8dcf
commit 0dac67d65f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=139656

View File

@ -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";