From: Robin Barker Date: Fri, 16 Jan 2009 16:15:47 +0000 (+0000) Subject: consting goodness for time64 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a8cb02613db44c6c8a53ff84a0d959222f9c694f;p=p5sagit%2Fp5-mst-13.2.git consting goodness for time64 --- diff --git a/pp_sys.c b/pp_sys.c index 5b2edea..225b55e 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 e8c649b..7545e08 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 };