BUILD/MINOR: tools: shut up the format truncation warning in get_gmt_offset()
authorWilly Tarreau <w@1wt.eu>
Tue, 29 Oct 2019 09:16:11 +0000 (10:16 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 29 Oct 2019 09:19:34 +0000 (10:19 +0100)
commite112c8a64be8ba2f7d8efb3221ec87a6ec119c54
treedefae56cbe607e84aceb5ce72f2d314c8d302b40
parent2252beb8557d73407b8f96eef91d6927fb855685
BUILD/MINOR: tools: shut up the format truncation warning in get_gmt_offset()

The gcc warning about format truncation in get_gmt_offset() is annoying
since we always call it with a valid time thus it cannot fail. However
it's true that nothing guarantees that future code reuses this function
incorrectly in the future, so better enforce the modulus on one day and
shut the warning.
src/standard.c