Use modern style defination for main() and move a extern
declaration to global section. Bump WARNS?= to 6
This commit is contained in:
parent
c08fa3f2c0
commit
3f5fb9f7fc
@ -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…
x
Reference in New Issue
Block a user