diff options
author | delphij <delphij@FreeBSD.org> | 2005-01-25 08:40:51 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2005-01-25 08:40:51 +0000 |
commit | 136497ca84f42d427e38fd77a24b199d97eacd28 (patch) | |
tree | 6e1b3543ddfa8fccd7668adfa63bc2028079071a /sbin/shutdown/shutdown.c | |
parent | 3f5fb9f7fcac2810c21bc5ea7aa378b07389396b (diff) | |
download | FreeBSD-src-136497ca84f42d427e38fd77a24b199d97eacd28.zip FreeBSD-src-136497ca84f42d427e38fd77a24b199d97eacd28.tar.gz |
Use new style declarations instead of K&R ones.
Diffstat (limited to 'sbin/shutdown/shutdown.c')
-rw-r--r-- | sbin/shutdown/shutdown.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/sbin/shutdown/shutdown.c b/sbin/shutdown/shutdown.c index 81c3620..c4f3f41 100644 --- a/sbin/shutdown/shutdown.c +++ b/sbin/shutdown/shutdown.c @@ -269,8 +269,7 @@ static const char *restricted_environ[] = { }; void -timewarn(timeleft) - int timeleft; +timewarn(int timeleft) { static int first; static char hostname[MAXHOSTNAMELEN + 1]; @@ -320,8 +319,7 @@ timewarn(timeleft) } void -timeout(signo) - int signo __unused; +timeout(int signo __unused) { longjmp(alarmbuf, 1); } @@ -388,8 +386,7 @@ die_you_gravy_sucking_pig_dog() #define ATOI2(p) (p[0] - '0') * 10 + (p[1] - '0'); p += 2; void -getoffset(timearg) - char *timearg; +getoffset(char *timearg) { struct tm *lt; char *p; @@ -494,8 +491,7 @@ nolog() } void -finish(signo) - int signo __unused; +finish(int signo __unused) { if (!killflg) (void)unlink(_PATH_NOLOGIN); @@ -509,8 +505,7 @@ badtime() } void -usage(cp) - const char *cp; +usage(const char *cp) { if (cp != NULL) warnx("%s", cp); |