Re: loadables/finfo: fix time_t printing

2022-12-09 Thread Chet Ramey
On 12/8/22 2:19 PM, Christian Weisgerber wrote: loadables/finfo.c uses the %ld format string to print time_t values. This is wrong on OpenBSD, where time_t is long long on all platforms. I suggest %lld and a cast to long long. Alternatively, %jd and intmax_t could be used. Thanks for the

loadables/finfo: fix time_t printing

2022-12-08 Thread Christian Weisgerber
loadables/finfo.c uses the %ld format string to print time_t values. This is wrong on OpenBSD, where time_t is long long on all platforms. I suggest %lld and a cast to long long. Alternatively, %jd and intmax_t could be used. --- examples/loadables/finfo.c.orig Mon Jun 29 16:56:32 2020 +++