Add const qualifier to tzn returned by timestamp2tm()
Peter Eisentraut <peter_e@gmx.net>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/datetime.c | modified | +1 −1 |
| src/backend/utils/adt/formatting.c | modified | +1 −1 |
| src/backend/utils/adt/timestamp.c | modified | +4 −4 |
| src/backend/utils/adt/xml.c | modified | +1 −1 |
| src/include/utils/timestamp.h | modified | +1 −1 |
| src/interfaces/ecpg/pgtypeslib/timestamp.c | modified | +2 −2 |