@@ -494,7 +494,7 @@ timestamptz_out(PG_FUNCTION_ARGS)
494
494
struct pg_tm tt ,
495
495
* tm = & tt ;
496
496
fsec_t fsec ;
497
- char * tzn ;
497
+ const char * tzn ;
498
498
char buf [MAXDATELEN + 1 ];
499
499
500
500
if (TIMESTAMP_NOT_FINITE (dt ))
@@ -1415,7 +1415,7 @@ timestamptz_to_str(TimestampTz t)
1415
1415
struct pg_tm tt ,
1416
1416
* tm = & tt ;
1417
1417
fsec_t fsec ;
1418
- char * tzn ;
1418
+ const char * tzn ;
1419
1419
1420
1420
if (TIMESTAMP_NOT_FINITE (t ))
1421
1421
EncodeSpecialTimestamp (t ,buf );
@@ -1466,7 +1466,7 @@ dt2time(Timestamp jd, int *hour, int *min, int *sec, fsec_t *fsec)
1466
1466
* timezone) will be used.
1467
1467
*/
1468
1468
int
1469
- timestamp2tm (Timestamp dt ,int * tzp ,struct pg_tm * tm ,fsec_t * fsec ,char * * tzn ,pg_tz * attimezone )
1469
+ timestamp2tm (Timestamp dt ,int * tzp ,struct pg_tm * tm ,fsec_t * fsec ,const char * * tzn ,pg_tz * attimezone )
1470
1470
{
1471
1471
Timestamp date ;
1472
1472
Timestamp time ;
@@ -1602,7 +1602,7 @@ timestamp2tm(Timestamp dt, int *tzp, struct pg_tm * tm, fsec_t *fsec, char **tzn
1602
1602
tm -> tm_zone = tx -> tm_zone ;
1603
1603
* tzp = - tm -> tm_gmtoff ;
1604
1604
if (tzn != NULL )
1605
- * tzn = ( char * ) tm -> tm_zone ;
1605
+ * tzn = tm -> tm_zone ;
1606
1606
}
1607
1607
else
1608
1608
{