CLEANUP: peers/cli: stop using appctx->st2 for the dump state
authorWilly Tarreau <w@1wt.eu>
Tue, 3 May 2022 12:58:47 +0000 (14:58 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 May 2022 16:13:35 +0000 (18:13 +0200)
commit3a31e37518a288119d87bd3189297bba92975ddd
tree6ba99ec12c60685dea45faec6be760e5d5cf5380
parentcb8bf17900af14ff8b3e414dd274010663d51a56
CLEANUP: peers/cli: stop using appctx->st2 for the dump state

Let's instead define a 4-state enum solely for this use case, and place
it into the command's context. Note that END and FIN were already
aliases, which is why they were merged.
src/peers.c