Skip site navigation (1) Skip section navigation (2)

pgsql: Add const qualifier to tzn returned by timestamp2tm()

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add const qualifier to tzn returned by timestamp2tm()
Date: 2012-03-15 19:19:21
Message-ID: E1S8GCn-00026U-Jd@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Add const qualifier to tzn returned by timestamp2tm()

The tzn value might come from tm->tm_zone, which libc declares as
const, so it's prudent that the upper layers know about this as well.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/eb990a2b9efff853d0c68a9cf902b1df23498540

Modified Files
--------------
src/backend/utils/adt/datetime.c           |    2 +-
src/backend/utils/adt/formatting.c         |    2 +-
src/backend/utils/adt/timestamp.c          |    8 ++++----
src/backend/utils/adt/xml.c                |    2 +-
src/include/utils/timestamp.h              |    2 +-
src/interfaces/ecpg/pgtypeslib/timestamp.c |    4 ++--
6 files changed, 10 insertions(+), 10 deletions(-)

pgsql-committers by date

Next:From: Robert HaasDate: 2012-03-15 20:13:15
Subject: pgsql: sepgsql_setcon().
Previous:From: Bruce MomjianDate: 2012-03-14 23:22:14
Subject: pgsql: Uppercase pg_upgrade status output title.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group