]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: peers: fix format string for status messages (int signedness)
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Nov 2022 14:32:20 +0000 (15:32 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Nov 2022 14:32:20 +0000 (15:32 +0100)
commitd05aa38950e106202b8bd374d73329d2c3e3a4ac
treebdb8bb7a91544d6b577bc4c3b218c29ae5c58851
parenta7dc251e0747bb41a145b111e66fa54898fcc5fe
CLEANUP: peers: fix format string for status messages (int signedness)

In issue #1939, Ilya mentions that cppchecks warned about use of "%d" to
report the status state that's locally stored as an unsigned int. While
technically valid, this will never cause any trouble since in the end
what we store there are the applet's states (just a few enum values).
Better use %u anyway to silence this warning.
src/peers.c