changeset 18063:29e0bb74097d

time_rz: make a constant 'const' * lib/time_rz.c (local_tz): Now const.
author Paul Eggert <eggert@cs.ucla.edu>
date Sat, 25 Jul 2015 15:11:42 -0700
parents a1744ab6ea8e
children e848c8248a0b
files ChangeLog lib/time_rz.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
 
+	time_rz: make a constant 'const'
+	* lib/time_rz.c (local_tz): Now const.
+
 	time_rz: fix off-by-one typo
 	* lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
 
--- a/lib/time_rz.c
+++ b/lib/time_rz.c
@@ -75,7 +75,7 @@
 /* Magic cookie timezone_t value, for local time.  It differs from
    NULL and from all other timezone_t values.  Only the address
    matters; the pointer is never dereferenced.  */
-static timezone_t local_tz = (timezone_t) 1;
+static timezone_t const local_tz = (timezone_t) 1;
 
 #if HAVE_TM_ZONE || HAVE_TZNAME