mirror of
https://github.com/postgres/postgres.git
synced 2025-06-25 01:02:05 +03:00
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
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user