]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: acme: fix build issue on 32-bit archs with 64-bit time_t
authorWilly Tarreau <w@1wt.eu>
Wed, 21 May 2025 08:18:47 +0000 (10:18 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 21 May 2025 08:18:47 +0000 (10:18 +0200)
commit4b52d5e4066fa704484ccc15dca312289834d50c
treec7b8c1b4eba8265229765e3e3fe70091c14aa132
parent09d4c9519e2081d53129cc6f437437255efaa299
BUILD: acme: fix build issue on 32-bit archs with 64-bit time_t

The build failed on mips32 with a 64-bit time_t here:

  https://github.com/haproxy/haproxy/actions/runs/15150389164/job/42595310111

Let's just turn the "remain" variable used to show the remaining time
into a more portable ullong and use %llu for all format specifiers,
since long remains limited to 32-bit on 32-bit archs.

No backport needed.
src/acme.c