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:
parent
9e3daa8dcf
commit
0dac67d65f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=139656
@ -34,9 +34,9 @@ __FBSDID("$FreeBSD$");
|
|||||||
#define MESSAGE "This account is currently not available.\n"
|
#define MESSAGE "This account is currently not available.\n"
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char *argv[])
|
main(void)
|
||||||
{
|
{
|
||||||
char *user, *tt;
|
const char *user, *tt;
|
||||||
|
|
||||||
if ((tt = ttyname(0)) == NULL)
|
if ((tt = ttyname(0)) == NULL)
|
||||||
tt = "UNKNOWN";
|
tt = "UNKNOWN";
|
||||||
|
Loading…
Reference in New Issue
Block a user