diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2019-01-29 01:16:24 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2019-02-13 11:50:16 +0100 |
commit | 37d9916020286caec810f4de61fbd0de3568454d (patch) | |
tree | d9d80040f72093664d8a20b55de2a670988d281e /src/timezone | |
parent | cf40dc65b676c8df1ee12f060b40f0e37a183e04 (diff) | |
download | postgresql-37d9916020286caec810f4de61fbd0de3568454d.tar.gz |
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/timezone')
-rw-r--r-- | src/timezone/localtime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timezone/localtime.c b/src/timezone/localtime.c index 96e62aff3b..9fe43135fe 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; } |