diff options
| author | Peter Eisentraut | 2012-03-15 19:17:19 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2012-03-15 19:17:19 +0000 |
| commit | eb990a2b9efff853d0c68a9cf902b1df23498540 (patch) | |
| tree | 36ec5e50918ef06c3f0a75744191c139f411460a /src/include/utils | |
| parent | 531e60aec02fa14d02185e42363b2277427e2119 (diff) | |
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.
Diffstat (limited to 'src/include/utils')
| -rw-r--r-- | src/include/utils/timestamp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/utils/timestamp.h b/src/include/utils/timestamp.h index 2eae95efac1..56699247668 100644 --- a/src/include/utils/timestamp.h +++ b/src/include/utils/timestamp.h @@ -222,7 +222,7 @@ extern const char *timestamptz_to_str(TimestampTz t); extern int tm2timestamp(struct pg_tm * tm, fsec_t fsec, int *tzp, Timestamp *dt); extern int timestamp2tm(Timestamp dt, int *tzp, struct pg_tm * tm, - fsec_t *fsec, char **tzn, pg_tz *attimezone); + fsec_t *fsec, const char **tzn, pg_tz *attimezone); extern void dt2time(Timestamp dt, int *hour, int *min, int *sec, fsec_t *fsec); extern int interval2tm(Interval span, struct pg_tm * tm, fsec_t *fsec); |
