aboutsummaryrefslogtreecommitdiff
path: root/sbin/shutdown
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2005-01-25 08:40:51 +0000
committerXin LI <delphij@FreeBSD.org>2005-01-25 08:40:51 +0000
commitf74b6bc2c15ed37b1e6c3cd2a87f3b6f6fa6df9a (patch)
tree6e1b3543ddfa8fccd7668adfa63bc2028079071a /sbin/shutdown
parentf906f84330a36affa5ff41802717143888c4e646 (diff)
downloadsrc-f74b6bc2c15ed37b1e6c3cd2a87f3b6f6fa6df9a.tar.gz
src-f74b6bc2c15ed37b1e6c3cd2a87f3b6f6fa6df9a.zip
Use new style declarations instead of K&R ones.
Notes
Notes: svn path=/head/; revision=140797
Diffstat (limited to 'sbin/shutdown')
-rw-r--r--sbin/shutdown/shutdown.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/sbin/shutdown/shutdown.c b/sbin/shutdown/shutdown.c
index 81c3620a0858..c4f3f41e6c51 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);