summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorGarrett Wollman <wollman@FreeBSD.org>1995-08-07 19:17:46 +0000
committerGarrett Wollman <wollman@FreeBSD.org>1995-08-07 19:17:46 +0000
commit656dcd4316d328f627e3c8f99be96bb2c41baf5b (patch)
tree413738746625eee30af858d100ea794582067fa4 /sbin
parent8e53a8e6fc66c9fbe9b277c18b90c11de39d7b7a (diff)
Notes
Diffstat (limited to 'sbin')
-rw-r--r--sbin/dump/optr.c10
-rw-r--r--sbin/savecore/savecore.c3
-rw-r--r--sbin/shutdown/shutdown.c1
3 files changed, 2 insertions, 12 deletions
diff --git a/sbin/dump/optr.c b/sbin/dump/optr.c
index 303b5b3c1fb1..3c464e4873c1 100644
--- a/sbin/dump/optr.c
+++ b/sbin/dump/optr.c
@@ -44,19 +44,11 @@ static char sccsid[] = "@(#)optr.c 8.2 (Berkeley) 1/6/94";
#include <grp.h>
#include <signal.h>
#include <stdio.h>
-#ifdef __STDC__
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
-#endif
-#include <tzfile.h>
-#ifdef __STDC__
#include <unistd.h>
-#endif
#include <utmp.h>
-#ifndef __STDC__
-#include <varargs.h>
-#endif
#include "dump.h"
#include "pathnames.h"
@@ -511,7 +503,7 @@ lastdump(arg)
dt = fstabsearch(dtwalk->dd_name);
dumpme = (dt != NULL &&
dt->fs_freq != 0 &&
- dtwalk->dd_ddate < tnow - (dt->fs_freq * SECSPERDAY));
+ dtwalk->dd_ddate < tnow - (dt->fs_freq * 86400));
if (arg != 'w' || dumpme)
(void) printf(
"%c %8s\t(%6s) Last dump: Level %c, Date %s\n",
diff --git a/sbin/savecore/savecore.c b/sbin/savecore/savecore.c
index 40e2b375ed40..67ea278449d5 100644
--- a/sbin/savecore/savecore.c
+++ b/sbin/savecore/savecore.c
@@ -58,7 +58,6 @@ static char sccsid[] = "@(#)savecore.c 8.3 (Berkeley) 1/2/94";
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <tzfile.h>
#include <unistd.h>
#define ok(number) ((number) - KERNBASE)
@@ -519,7 +518,7 @@ get_crashtime()
return (0);
}
(void)printf("savecore: system went down at %s", ctime(&dumptime));
-#define LEEWAY (7 * SECSPERDAY)
+#define LEEWAY (7 * 86400)
if (dumptime < now - LEEWAY || dumptime > now + LEEWAY) {
(void)printf("dump time is unreasonable\n");
return (0);
diff --git a/sbin/shutdown/shutdown.c b/sbin/shutdown/shutdown.c
index 1e69eed75577..e94e096584d0 100644
--- a/sbin/shutdown/shutdown.c
+++ b/sbin/shutdown/shutdown.c
@@ -54,7 +54,6 @@ static char sccsid[] = "@(#)shutdown.c 8.2 (Berkeley) 2/16/94";
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <tzfile.h>
#include <unistd.h>
#include "pathnames.h"