Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/shutdown statc + __dead
details: https://anonhg.NetBSD.org/src/rev/350121611094
branches: trunk
changeset: 768825:350121611094
user: joerg <joerg%NetBSD.org@localhost>
date: Sat Aug 27 18:54:39 2011 +0000
description:
statc + __dead
diffstat:
sbin/shutdown/shutdown.c | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
diffs (88 lines):
diff -r 88a72dcaed30 -r 350121611094 sbin/shutdown/shutdown.c
--- a/sbin/shutdown/shutdown.c Sat Aug 27 18:54:15 2011 +0000
+++ b/sbin/shutdown/shutdown.c Sat Aug 27 18:54:39 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: shutdown.c,v 1.54 2011/02/16 19:33:48 wiz Exp $ */
+/* $NetBSD: shutdown.c,v 1.55 2011/08/27 18:54:39 joerg Exp $ */
/*
* Copyright (c) 1988, 1990, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)shutdown.c 8.4 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: shutdown.c,v 1.54 2011/02/16 19:33:48 wiz Exp $");
+__RCSID("$NetBSD: shutdown.c,v 1.55 2011/08/27 18:54:39 joerg Exp $");
#endif
#endif /* not lint */
@@ -99,12 +99,12 @@
static void badtime(void) __dead;
static void die_you_gravy_sucking_pig_dog(void) __dead;
static void doitfast(void);
-void dorcshutdown(void);
+static void dorcshutdown(void);
static void finish(int) __dead;
static void getoffset(char *);
-static void loop(void);
+static void loop(void) __dead;
static void nolog(void);
-static void timeout(int);
+static void timeout(int) __dead;
static void timewarn(time_t);
static void usage(void) __dead;
@@ -250,7 +250,7 @@
#endif
}
-void
+static void
loop(void)
{
const struct interval *tp;
@@ -294,7 +294,7 @@
static jmp_buf alarmbuf;
-void
+static void
timewarn(time_t timeleft)
{
static int first;
@@ -435,7 +435,7 @@
#define ATOI2(s) ((s) += 2, ((s)[-2] - '0') * 10 + ((s)[-1] - '0'))
-void
+static void
getoffset(char *timearg)
{
struct tm *lt;
@@ -515,7 +515,7 @@
errx(1, "time is already past");
}
-void
+static void
dorcshutdown(void)
{
(void)printf("\r\nAbout to run shutdown hooks...\r\n");
@@ -528,7 +528,7 @@
}
#define FSMSG "fastboot file for fsck\n"
-void
+static void
doitfast(void)
{
int fastfd;
@@ -541,7 +541,7 @@
}
#define NOMSG "\n\nNO LOGINS: System going down at "
-void
+static void
nolog(void)
{
int logfd;
Home |
Main Index |
Thread Index |
Old Index