From 3f5fb9f7fcac2810c21bc5ea7aa378b07389396b Mon Sep 17 00:00:00 2001 From: delphij Date: Tue, 25 Jan 2005 08:37:04 +0000 Subject: Use modern style defination for main() and move a extern declaration to global section. Bump WARNS?= to 6 --- sbin/shutdown/Makefile | 3 +++ sbin/shutdown/shutdown.c | 7 +++---- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'sbin/shutdown') diff --git a/sbin/shutdown/Makefile b/sbin/shutdown/Makefile index e22759f..b7f232d 100644 --- a/sbin/shutdown/Makefile +++ b/sbin/shutdown/Makefile @@ -3,6 +3,9 @@ PROG= shutdown MAN= shutdown.8 + +WARNS?= 6 + BINOWN= root BINGRP= operator BINMODE=4550 diff --git a/sbin/shutdown/shutdown.c b/sbin/shutdown/shutdown.c index f719ebf..81c3620 100644 --- a/sbin/shutdown/shutdown.c +++ b/sbin/shutdown/shutdown.c @@ -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)); -- cgit v1.1