diff options
author | wollman <wollman@FreeBSD.org> | 1995-08-07 19:17:46 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1995-08-07 19:17:46 +0000 |
commit | fc1f6c1d76677a4e8d2c39e5fa7be3716841930e (patch) | |
tree | 413738746625eee30af858d100ea794582067fa4 /sbin | |
parent | c87e4ea046fafb0b07c7ac3335948b0743fed8b4 (diff) | |
download | FreeBSD-src-fc1f6c1d76677a4e8d2c39e5fa7be3716841930e.zip FreeBSD-src-fc1f6c1d76677a4e8d2c39e5fa7be3716841930e.tar.gz |
Delete bogus referneces to timezone code internal header file `tzfile.h',
which is no longer bogusly installed in /usr/include.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/dump/optr.c | 10 | ||||
-rw-r--r-- | sbin/savecore/savecore.c | 3 | ||||
-rw-r--r-- | sbin/shutdown/shutdown.c | 1 |
3 files changed, 2 insertions, 12 deletions
diff --git a/sbin/dump/optr.c b/sbin/dump/optr.c index 303b5b3..3c464e4 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 40e2b37..67ea278 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 1e69eed..e94e096 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" |