misc: Use 64 bit time_t interfaces on syslog
commitac0d208b54fe78ff378afce8003467c763c6a74a
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 18 Mar 2022 13:10:53 +0000 (18 10:10 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 15 Apr 2022 13:41:54 +0000 (15 10:41 -0300)
treec9a62e1389a10c9abc06fb7d72bde0d8014d03fb
parentcac6b54ae2e99013d472ce548405886d301c73e4
misc: Use 64 bit time_t interfaces on syslog

It also handles the highly unlikely case where localtime might return
NULL, in this case only the PRI is set to hopefully instruct the relay
to get eh TIMESTAMP (as defined by the RFC).

Checked on x86_64-linux-gnu and i686-linux-gnu.
misc/syslog.c