Fix another incorrect data type choice from commit dc2123400.
commit3f1fd416316cbb66de61ac1ac34839f025b0b242
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 27 Dec 2023 18:05:16 +0000 (27 13:05 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 27 Dec 2023 18:05:19 +0000 (27 13:05 -0500)
treea20183b353cb4ebef8f593f3cd176bf67b94c51f
parent390408ec08d338f36798ec063f81c5098596f8da
Fix another incorrect data type choice from commit dc2123400.

add_file_to_manifest declared its mtime argument as pg_time_t,
apparently on the principle that copy-and-paste from the backend
is fine.  However, the callers are passing struct stat's st_mtime
field which is plain time_t, and add_file_to_manifest itself is
passing the value to gmtime(3) which expects plain time_t,
so the whole thing would not work at all on any platform where
those types are different.  Fortunately we can just switch this
variable to time_t.

Per warnings from assorted buildfarm members.
src/bin/pg_combinebackup/write_manifest.c
src/bin/pg_combinebackup/write_manifest.h