]> git.kaiwu.me - haproxy.git/commit
CLEANUP: debug/tree-wide: replace COUNT_IF(1, ...) with COUNT()
authorWilly Tarreau <w@1wt.eu>
Fri, 6 Nov 2026 15:17:00 +0000 (16:17 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 Nov 2026 15:19:32 +0000 (16:19 +0100)
commit78bd79a8d0ed6d40968298a48cbfa727da31b3c6
treeef5983fe9bf4d5269947d54eb93c4b76a3d58f17
parent29925e59a7969e266e81a58cd328bde8c5c7d08d
CLEANUP: debug/tree-wide: replace COUNT_IF(1, ...) with COUNT()

This patch replaces 28 occurrences of COUNT_IF(1, msg) with COUNT(msg).
This makes the counters output more readable, the code as well, and even
saves a few bytes (148) in the executable.
include/haproxy/http.h
src/ev_epoll.c
src/mux_h1.c
src/mux_quic.c
src/quic_rx.c
src/sock.c
src/stream.c