summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1995-08-07 19:17:46 +0000
committerwollman <wollman@FreeBSD.org>1995-08-07 19:17:46 +0000
commitfc1f6c1d76677a4e8d2c39e5fa7be3716841930e (patch)
tree413738746625eee30af858d100ea794582067fa4 /bin
parentc87e4ea046fafb0b07c7ac3335948b0743fed8b4 (diff)
downloadFreeBSD-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 'bin')
-rw-r--r--bin/ls/print.c5
-rw-r--r--bin/pax/gen_subs.c5
-rw-r--r--bin/ps/print.c7
3 files changed, 7 insertions, 10 deletions
diff --git a/bin/ls/print.c b/bin/ls/print.c
index d0e6c16..03b9288 100644
--- a/bin/ls/print.c
+++ b/bin/ls/print.c
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: print.c,v 1.3 1995/03/19 13:28:46 joerg Exp $
+ * $Id: print.c,v 1.4 1995/05/30 00:06:50 rgrimes Exp $
*/
#ifndef lint
@@ -52,7 +52,6 @@ static char sccsid[] = "@(#)print.c 8.4 (Berkeley) 4/17/94";
#include <stdlib.h>
#include <string.h>
#include <time.h>
-#include <tzfile.h>
#include <unistd.h>
#include <utmp.h>
@@ -234,7 +233,7 @@ printtime(ftime)
for (i = 4; i < 11; ++i)
(void)putchar(longstring[i]);
-#define SIXMONTHS ((DAYSPERNYEAR / 2) * SECSPERDAY)
+#define SIXMONTHS ((365 / 2) * 86400)
if (f_sectime)
for (i = 11; i < 24; i++)
(void)putchar(longstring[i]);
diff --git a/bin/pax/gen_subs.c b/bin/pax/gen_subs.c
index 42be017..2d228fc 100644
--- a/bin/pax/gen_subs.c
+++ b/bin/pax/gen_subs.c
@@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: gen_subs.c,v 1.3 1995/03/19 13:28:49 joerg Exp $
+ * $Id: gen_subs.c,v 1.4 1995/05/30 00:06:58 rgrimes Exp $
*/
#ifndef lint
@@ -47,7 +47,6 @@ static char sccsid[] = "@(#)gen_subs.c 8.1 (Berkeley) 5/31/93";
#include <sys/param.h>
#include <stdio.h>
#include <ctype.h>
-#include <tzfile.h>
#include <utmp.h>
#include <unistd.h>
#include <stdlib.h>
@@ -64,7 +63,7 @@ static char sccsid[] = "@(#)gen_subs.c 8.1 (Berkeley) 5/31/93";
*/
#define MODELEN 20
#define DATELEN 64
-#define SIXMONTHS ((DAYSPERNYEAR / 2) * SECSPERDAY)
+#define SIXMONTHS ((365 / 2) * 86400)
#define CURFRMT "%b %e %H:%M"
#define OLDFRMT "%b %e %Y"
#ifndef UT_NAMESIZE
diff --git a/bin/ps/print.c b/bin/ps/print.c
index 8085f48..cf042d7 100644
--- a/bin/ps/print.c
+++ b/bin/ps/print.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: print.c,v 1.6 1995/03/19 13:29:01 joerg Exp $
+ * $Id: print.c,v 1.7 1995/05/30 00:07:04 rgrimes Exp $
*/
#ifndef lint
@@ -65,7 +65,6 @@ static char sccsid[] = "@(#)print.c 8.6 (Berkeley) 4/16/94";
#include <stdlib.h>
#include <string.h>
#include <vis.h>
-#include <tzfile.h>
#include "ps.h"
@@ -369,11 +368,11 @@ started(k, ve)
tp = localtime(&k->ki_u.u_start.tv_sec);
if (!now)
(void)time(&now);
- if (now - k->ki_u.u_start.tv_sec < 24 * SECSPERHOUR) {
+ if (now - k->ki_u.u_start.tv_sec < 24 * 3600) {
/* I *hate* SCCS... */
static char fmt[] = __CONCAT("%l:%", "M%p");
(void)strftime(buf, sizeof(buf) - 1, fmt, tp);
- } else if (now - k->ki_u.u_start.tv_sec < 7 * SECSPERDAY) {
+ } else if (now - k->ki_u.u_start.tv_sec < 7 * 86400) {
/* I *hate* SCCS... */
static char fmt[] = __CONCAT("%a%", "I%p");
(void)strftime(buf, sizeof(buf) - 1, fmt, tp);
OpenPOWER on IntegriCloud