summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Barker <Robin.Barker@npl.co.uk>2009-01-16 16:15:47 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-01-18 09:55:09 +0100
commita8cb02613db44c6c8a53ff84a0d959222f9c694f (patch)
tree92e3f4dc04435de59c3b878a7abf47463a7e6b34
parentb1b1ee3cbfeeb4d81bc0f3c8c5873da55e7d8469 (diff)
downloadperl-a8cb02613db44c6c8a53ff84a0d959222f9c694f.tar.gz
consting goodness for time64
-rw-r--r--pp_sys.c2
-rw-r--r--time64.h2
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
};