From: Paul Eggert Date: Sat, 25 Jul 2015 22:11:42 +0000 (-0700) Subject: time_rz: make a constant 'const' X-Git-Tag: v1.0~6995 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=d3e697dd9ef69ec689cd4b98d25f9046cc25fa4b;p=gnulib.git time_rz: make a constant 'const' * lib/time_rz.c (local_tz): Now const. --- 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