]> git.kaiwu.me - haproxy.git/commit
CLEANUP: peers: remove the unused intencode()
authorFrederic Lecaille <flecaille@haproxy.com>
Wed, 18 Nov 2026 14:21:21 +0000 (15:21 +0100)
committerFrederic Lecaille <flecaille@haproxy.com>
Wed, 18 Nov 2026 14:53:46 +0000 (15:53 +0100)
commitf79015290ed0b7b2e56968b84c0ae10cbfb35af9
treef5161018660c9c93be9ab3c9422ad0c5a6da6ce6
parent96aab75ba6e6c5194b3a29e7b6fd33712e1aafd5
CLEANUP: peers: remove the unused intencode()

All peers message builders now use encode_varint(), which knows the end of
the destination buffer and can fail. intencode() has no caller left, and
its comment still advises callers to ensure the room left after the
pointer, which is exactly what the new code checks explicitly.

Remove it.
src/peers.c