diff options
author | Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> | 2020-06-16 13:47:35 +0100 |
---|---|---|
committer | Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> | 2020-07-18 01:28:15 +0100 |
commit | 926c3ce35a7ef910c55cf0964c39718ef5938ca6 (patch) | |
tree | 1d601edf2be0a498cfa7d5868fae5818d7a9c306 /time64.c | |
parent | 89fbdd0cf3a72a4b599d80ea1227fbd0d5c3fdc9 (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |