]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: compat: make the MIN/MAX macros more reliable
authorWilly Tarreau <w@1wt.eu>
Fri, 17 May 2024 13:25:26 +0000 (15:25 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 17 May 2024 13:57:18 +0000 (15:57 +0200)
commit0999e3d9597c5a1ad01a4288ee0093a58d6f75d0
tree70c99c5d47466ab2f9f88cd15e38114ff61b7142
parentb9915a745e1c19852bc2abbee8076ed877d358e8
CLEANUP: compat: make the MIN/MAX macros more reliable

After every release we say that MIN/MAX should be changed to be an
expression that only evaluates each operand once, and before every
version we forget to change it and we recheck that the code doesn't
misuse them. Let's fix them now.
include/haproxy/compat.h