From a8cb02613db44c6c8a53ff84a0d959222f9c694f Mon Sep 17 00:00:00 2001 From: Robin Barker Date: Fri, 16 Jan 2009 16:15:47 +0000 Subject: consting goodness for time64 --- pp_sys.c | 2 +- time64.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pp_sys.c b/pp_sys.c index 5b2edea043..225b55ef79 100644 --- a/pp_sys.c +++ b/pp_sys.c @@ -4425,7 +4425,7 @@ PP(pp_gmtime) Time64_T when; struct TM tmbuf; struct TM *err; - char *opname = PL_op->op_type == OP_LOCALTIME ? "localtime" : "gmtime"; + const char *opname = PL_op->op_type == OP_LOCALTIME ? "localtime" : "gmtime"; static const char * const dayname[] = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"}; static const char * const monname[] = diff --git a/time64.h b/time64.h index e8c649b866..7545e08cf5 100644 --- a/time64.h +++ b/time64.h @@ -28,7 +28,7 @@ struct TM64 { #endif #ifdef HAS_TM_TM_ZONE - char *tm_zone; + const char *tm_zone; #endif }; -- cgit v1.2.1