mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-19 15:33:56 +00:00
Use modern style defination for main() and move a extern
declaration to global section. Bump WARNS?= to 6
This commit is contained in:
parent
36737a0b77
commit
f906f84330
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140796
@ -3,6 +3,9 @@
|
||||
|
||||
PROG= shutdown
|
||||
MAN= shutdown.8
|
||||
|
||||
WARNS?= 6
|
||||
|
||||
BINOWN= root
|
||||
BINGRP= operator
|
||||
BINMODE=4550
|
||||
|
@ -102,10 +102,10 @@ void timeout(int);
|
||||
void timewarn(int);
|
||||
void usage(const char *);
|
||||
|
||||
extern const char **environ;
|
||||
|
||||
int
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
char *p, *endp;
|
||||
struct passwd *pw;
|
||||
@ -276,7 +276,6 @@ timewarn(timeleft)
|
||||
static char hostname[MAXHOSTNAMELEN + 1];
|
||||
FILE *pf;
|
||||
char wcmd[MAXPATHLEN + 4];
|
||||
extern const char **environ;
|
||||
|
||||
if (!first++)
|
||||
(void)gethostname(hostname, sizeof(hostname));
|
||||
|
Loading…
Reference in New Issue
Block a user