aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/formatting.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2019-01-29 01:16:24 +0100
committerPeter Eisentraut <peter@eisentraut.org>2019-02-13 11:50:16 +0100
commit37d9916020286caec810f4de61fbd0de3568454d (patch)
treed9d80040f72093664d8a20b55de2a670988d281e /src/backend/utils/adt/formatting.c
parentcf40dc65b676c8df1ee12f060b40f0e37a183e04 (diff)
downloadpostgresql-37d9916020286caec810f4de61fbd0de3568454d.tar.gz
postgresql-37d9916020286caec810f4de61fbd0de3568454d.zip
More unconstify use
Replace casts whose only purpose is to cast away const with the unconstify() macro. Discussion: https://www.postgresql.org/message-id/flat/53a28052-f9f3-1808-fed9-460fd43035ab%402ndquadrant.com
Diffstat (limited to 'src/backend/utils/adt/formatting.c')
-rw-r--r--src/backend/utils/adt/formatting.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/adt/formatting.c b/src/backend/utils/adt/formatting.c
index 096d862c1de..df1db7bc9f1 100644
--- a/src/backend/utils/adt/formatting.c
+++ b/src/backend/utils/adt/formatting.c
@@ -3688,7 +3688,7 @@ to_timestamp(PG_FUNCTION_ARGS)
/* Use the specified time zone, if any. */
if (tm.tm_zone)
{
- int dterr = DecodeTimezone((char *) tm.tm_zone, &tz);
+ int dterr = DecodeTimezone(unconstify(char *, tm.tm_zone), &tz);
if (dterr)
DateTimeParseError(dterr, text_to_cstring(date_txt), "timestamptz");