summaryrefslogtreecommitdiff
path: root/time64.c
diff options
context:
space:
mode:
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>2020-06-16 13:47:35 +0100
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>2020-07-18 01:28:15 +0100
commit926c3ce35a7ef910c55cf0964c39718ef5938ca6 (patch)
tree1d601edf2be0a498cfa7d5868fae5818d7a9c306 /time64.c
parent89fbdd0cf3a72a4b599d80ea1227fbd0d5c3fdc9 (diff)
downloadperl-926c3ce35a7ef910c55cf0964c39718ef5938ca6.tar.gz
time64: declare `tm_zone` as `const char*` unconditionally
We only ever assign from `struct tm` to `struct TM`, not the other way around, so making this const regardless of what `struct tm` has should be safe.
Diffstat (limited to 'time64.c')
-rw-r--r--time64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/time64.c b/time64.c
index bbcef8e774..7fc50af13d 100644
--- a/time64.c
+++ b/time64.c
@@ -374,7 +374,7 @@ struct TM *Perl_gmtime64_r (const Time64_T *in_time, struct TM *p)
p->tm_isdst = 0;
#ifdef HAS_TM_TM_ZONE
- p->tm_zone = (char *)"UTC";
+ p->tm_zone = "UTC";
#endif
v_tm_sec = (int)Perl_fmod(time, 60.0);