summaryrefslogtreecommitdiffstats
path: root/lib/libc/time/wcsftime.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2019-05-12 12:49:52 +0000
committerschwarze <schwarze@openbsd.org>2019-05-12 12:49:52 +0000
commitbb5f5481f19635d142a1c2a56c775f73b38b4cef (patch)
treec863a170e35491c5919d9f6c53bd7edbb35f1447 /lib/libc/time/wcsftime.c
parentdocument existing command status, and new command wipe (diff)
downloadwireguard-openbsd-bb5f5481f19635d142a1c2a56c775f73b38b4cef.tar.xz
wireguard-openbsd-bb5f5481f19635d142a1c2a56c775f73b38b4cef.zip
Unifdef TM_GMTOFF TM_ZONE USG_COMPAT ALTZONE to make the code more readable.
No binary change when compiled with -g0. Note that wcsftime.c did not even compile without TM_ZONE. OK millert@
Diffstat (limited to 'lib/libc/time/wcsftime.c')
-rw-r--r--lib/libc/time/wcsftime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/time/wcsftime.c b/lib/libc/time/wcsftime.c
index 0678404012e..6870871bc74 100644
--- a/lib/libc/time/wcsftime.c
+++ b/lib/libc/time/wcsftime.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wcsftime.c,v 1.6 2015/02/09 14:52:28 tedu Exp $ */
+/* $OpenBSD: wcsftime.c,v 1.7 2019/05/12 12:49:52 schwarze Exp $ */
/*
** Based on the UCB version with the ID appearing below.
** This is ANSIish only when "multibyte character == plain character".
@@ -439,7 +439,7 @@ label:
continue;
case 'Z':
if (t->tm_zone != NULL)
- pt = _sadd(t->TM_ZONE, pt, ptlim);
+ pt = _sadd(t->tm_zone, pt, ptlim);
else
if (t->tm_isdst >= 0)
pt = _sadd(tzname[t->tm_isdst != 0],