]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: debug: COUNT_IF() should return true/false
authorWilly Tarreau <w@1wt.eu>
Wed, 27 Nov 2024 13:24:16 +0000 (14:24 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 Dec 2024 17:45:46 +0000 (18:45 +0100)
commit7f64bb79fd35f22537ce5d05f59838e49db5cb10
tree04e63600116cb27d234e55fa6f6f39c2a3d5a8a0
parentfc0bb6224c608862b31bc784da9b7fc1fa5f3322
BUG/MINOR: debug: COUNT_IF() should return true/false

The COUNT_IF() macro was initially meant to return true/false to be used
in if() conditions but had an extra do { } while(0) that prevents it from
doing so. Let's get rid of the do { } while(0) before the code generalizes
to too many places. There's no impact on existing code, but may have to be
backported if future fixes rely on it.
include/haproxy/bug.h