From 22eb77a8bd9284ff55e7f91c659398a9a554766a Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sun, 15 Mar 2015 00:41:29 +0000 Subject: tzfile.h is an internal header that should never have been installed. What's worse, the tzfile.h that gets installed is over 20 years old and doesn't match the real tzfile.h in libc/time. This makes the tree safe for /usr/include/tzfile.h removal. The TM_YEAR_BASE define has been moved to time.h temporarily until its usage is replaced by 1900 in the tree. Actual removal of tzfile.h is pending a ports build. Based on a diff from deraadt@ --- usr.bin/find/find.h | 5 ++++- usr.bin/find/function.c | 3 +-- usr.bin/find/ls.c | 4 +--- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'usr.bin/find') diff --git a/usr.bin/find/find.h b/usr.bin/find/find.h index 6380c93f82f..0d7690f034b 100644 --- a/usr.bin/find/find.h +++ b/usr.bin/find/find.h @@ -1,4 +1,4 @@ -/* $OpenBSD: find.h,v 1.16 2015/01/19 15:30:52 krw Exp $ */ +/* $OpenBSD: find.h,v 1.17 2015/03/15 00:41:28 millert Exp $ */ /*- * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. @@ -133,4 +133,7 @@ typedef struct _option { int flags; } OPTION; +#define SECSPERDAY (24 * 60 * 60) +#define SIXMONTHS (SECSPERDAY * 365 / 2) + #include "extern.h" diff --git a/usr.bin/find/function.c b/usr.bin/find/function.c index be4e013393f..6037db0b287 100644 --- a/usr.bin/find/function.c +++ b/usr.bin/find/function.c @@ -1,4 +1,4 @@ -/* $OpenBSD: function.c,v 1.42 2015/01/16 06:40:07 deraadt Exp $ */ +/* $OpenBSD: function.c,v 1.43 2015/03/15 00:41:28 millert Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -49,7 +49,6 @@ #include #include #include -#include #include #include "find.h" diff --git a/usr.bin/find/ls.c b/usr.bin/find/ls.c index adbc0d7e81c..230c8ea93f4 100644 --- a/usr.bin/find/ls.c +++ b/usr.bin/find/ls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ls.c,v 1.16 2015/01/16 06:40:07 deraadt Exp $ */ +/* $OpenBSD: ls.c,v 1.17 2015/03/15 00:41:28 millert Exp $ */ /* * Copyright (c) 1989, 1993 @@ -36,7 +36,6 @@ #include #include #include -#include #include #include #include @@ -53,7 +52,6 @@ static void printtime(time_t); #define NAME_WIDTH 8 #define DATELEN 64 -#define SIXMONTHS ((DAYSPERNYEAR / 2) * SECSPERDAY) void printlong(char *name, char *accpath, struct stat *sb) -- cgit v1.2.3