@@ -494,7 +494,7 @@ timestamptz_out(PG_FUNCTION_ARGS)
494494struct pg_tm tt ,
495495* tm = & tt ;
496496fsec_t fsec ;
497- char * tzn ;
497+ const char * tzn ;
498498char buf [MAXDATELEN + 1 ];
499499
500500if (TIMESTAMP_NOT_FINITE (dt ))
@@ -1415,7 +1415,7 @@ timestamptz_to_str(TimestampTz t)
14151415struct pg_tm tt ,
14161416* tm = & tt ;
14171417fsec_t fsec ;
1418- char * tzn ;
1418+ const char * tzn ;
14191419
14201420if (TIMESTAMP_NOT_FINITE (t ))
14211421EncodeSpecialTimestamp (t ,buf );
@@ -1466,7 +1466,7 @@ dt2time(Timestamp jd, int *hour, int *min, int *sec, fsec_t *fsec)
14661466 * timezone) will be used.
14671467 */
14681468int
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 )
14701470{
14711471Timestamp date ;
14721472Timestamp time ;
@@ -1602,7 +1602,7 @@ timestamp2tm(Timestamp dt, int *tzp, struct pg_tm * tm, fsec_t *fsec, char **tzn
16021602tm -> tm_zone = tx -> tm_zone ;
16031603* tzp = - tm -> tm_gmtoff ;
16041604if (tzn != NULL )
1605- * tzn = ( char * ) tm -> tm_zone ;
1605+ * tzn = tm -> tm_zone ;
16061606}
16071607else
16081608{