From d3e697dd9ef69ec689cd4b98d25f9046cc25fa4b Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 25 Jul 2015 15:11:42 -0700 Subject: [PATCH] time_rz: make a constant 'const' * 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 e2b368db47..eeb37db640 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2015-07-25 Paul Eggert + 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 19aaa1aedd..55b91224da 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.39.5