bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/6] time_rz: make a constant 'const'


From: Paul Eggert
Subject: [PATCH 2/6] time_rz: make a constant 'const'
Date: Sat, 25 Jul 2015 18:21:54 -0700

* lib/time_rz.c (local_tz): Now const.
---
 ChangeLog     | 3 +++
 lib/time_rz.c | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index e2b368d..eeb37db 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2015-07-25  Paul Eggert  <address@hidden>
 
+       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.
 
diff --git a/lib/time_rz.c b/lib/time_rz.c
index 19aaa1a..55b9122 100644
--- a/lib/time_rz.c
+++ b/lib/time_rz.c
@@ -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
 
-- 
2.1.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]