]> Savannah Git Hosting - gnulib.git/commitdiff
time_rz: make a constant 'const'
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 25 Jul 2015 22:11:42 +0000 (15:11 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 26 Jul 2015 01:17:44 +0000 (18:17 -0700)
* lib/time_rz.c (local_tz): Now const.

ChangeLog
lib/time_rz.c

index e2b368db472d6e2bc9c0292e676df7f4f755f127..eeb37db64056d0b3d72e78a1018a0d390e354190 100644 (file)
--- 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.
 
index 19aaa1aedde25d078656c6f39312502715e27737..55b91224da12c9c7c74b6176ad4c6541f942fa44 100644 (file)
@@ -75,7 +75,7 @@ static char const TZ[] = "TZ";
 /* 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