summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/perl/time64.c
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2013-03-25 20:09:46 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2013-03-25 20:09:46 +0000
commit6eda9412f8dc717200dec22c57afdd2a46edfa8e (patch)
treec835d11c3e3f90de6a8561320ec54f077bfd358f /gnu/usr.bin/perl/time64.c
parent19adbb7d6dbd1516758cad91978165088a19e917 (diff)
import perl 5.16.3 from CPAN - worked on by Andrew Fresh and myself
Diffstat (limited to 'gnu/usr.bin/perl/time64.c')
-rw-r--r--gnu/usr.bin/perl/time64.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.bin/perl/time64.c b/gnu/usr.bin/perl/time64.c
index 1d43f397171..9faab1046ee 100644
--- a/gnu/usr.bin/perl/time64.c
+++ b/gnu/usr.bin/perl/time64.c
@@ -368,7 +368,7 @@ static struct TM *S_gmtime64_r (const Time64_T *in_time, struct TM *p)
p->tm_isdst = 0;
#ifdef HAS_TM_TM_ZONE
- p->tm_zone = "UTC";
+ p->tm_zone = (char *)"UTC";
#endif
v_tm_sec = (int)fmod(time, 60.0);
@@ -543,7 +543,7 @@ static struct TM *S_localtime64_r (const Time64_T *time, struct TM *local_tm)
/* GMT is Jan 1st, xx01 year, but localtime is still Dec 31st
in a non-leap xx00. There is one point in the cycle
we can't account for which the safe xx00 year is a leap
- year. So we need to correct for Dec 31st comming out as
+ year. So we need to correct for Dec 31st coming out as
the 366th day of the year.
*/
if( !IS_LEAP(local_tm->tm_year) && local_tm->tm_yday == 365 )