From 37d9916020286caec810f4de61fbd0de3568454d Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 29 Jan 2019 01:16:24 +0100 Subject: 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 --- src/timezone/localtime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/timezone') diff --git a/src/timezone/localtime.c b/src/timezone/localtime.c index 96e62aff3b4..9fe43135fe3 100644 --- a/src/timezone/localtime.c +++ b/src/timezone/localtime.c @@ -1364,7 +1364,7 @@ localsub(struct state const *sp, pg_time_t const *timep, if (result) { result->tm_isdst = ttisp->tt_isdst; - result->tm_zone = (char *) &sp->chars[ttisp->tt_abbrind]; + result->tm_zone = unconstify(char *, &sp->chars[ttisp->tt_abbrind]); } return result; } -- cgit v1.2.3