aboutsummaryrefslogtreecommitdiff
path: root/contrib/tzcode/zdump.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2024-09-07 13:46:13 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2024-10-06 09:16:34 +0000
commit036ce2460cbc734af3e8f5a65e5dc1f9039fd138 (patch)
treef279350e99bf0a05834982d7526072b0c17eaf26 /contrib/tzcode/zdump.c
parent46d52461bf36d941b817e52a637845142a90946a (diff)
Update tzcode to 2024b.
MFC after: 3 weeks Sponsored by: Klara, Inc. Reviewed by: philip Differential Revision: https://reviews.freebsd.org/D46565 (cherry picked from commit a979394afeb5c20fc58c5f5b005d51eb8f92f666)
Diffstat (limited to 'contrib/tzcode/zdump.c')
-rw-r--r--contrib/tzcode/zdump.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/tzcode/zdump.c b/contrib/tzcode/zdump.c
index 979f715ee249..a42c337e6d44 100644
--- a/contrib/tzcode/zdump.c
+++ b/contrib/tzcode/zdump.c
@@ -89,7 +89,7 @@ static bool warned;
static bool errout;
static char const *abbr(struct tm const *);
-ATTRIBUTE_REPRODUCIBLE static intmax_t delta(struct tm *, struct tm *);
+static intmax_t delta(struct tm *, struct tm *);
static void dumptime(struct tm const *);
static time_t hunt(timezone_t, time_t, time_t, bool);
static void show(timezone_t, char *, time_t, bool);
@@ -97,7 +97,7 @@ static void showextrema(timezone_t, char *, time_t, struct tm *, time_t);
static void showtrans(char const *, struct tm const *, time_t, char const *,
char const *);
static const char *tformat(void);
-ATTRIBUTE_REPRODUCIBLE static time_t yeartot(intmax_t);
+ATTRIBUTE_PURE_114833 static time_t yeartot(intmax_t);
/* Is C an ASCII digit? */
static bool
@@ -134,7 +134,7 @@ size_overflow(void)
/* Return A + B, exiting if the result would overflow either ptrdiff_t
or size_t. A and B are both nonnegative. */
-ATTRIBUTE_REPRODUCIBLE static ptrdiff_t
+ATTRIBUTE_PURE_114833 static ptrdiff_t
sumsize(ptrdiff_t a, ptrdiff_t b)
{
#ifdef ckd_add
@@ -162,7 +162,7 @@ xstrsize(char const *str)
/* Return a pointer to a newly allocated buffer of size SIZE, exiting
on failure. SIZE should be positive. */
-ATTRIBUTE_MALLOC static void *
+static void *
xmalloc(ptrdiff_t size)
{
void *p = malloc(size);
@@ -934,7 +934,7 @@ showextrema(timezone_t tz, char *zone, time_t lo, struct tm *lotmp, time_t hi)
# include <stdarg.h>
/* A substitute for snprintf that is good enough for zdump. */
-ATTRIBUTE_FORMAT((printf, 3, 4)) static int
+static int
my_snprintf(char *s, size_t size, char const *format, ...)
{
int n;