CLEANUP: peers/cli: stop misusing the appctx local variable
authorWilly Tarreau <w@1wt.eu>
Tue, 31 May 2022 06:53:25 +0000 (08:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 May 2022 06:53:25 +0000 (08:53 +0200)
commitfc5059958f4c6d711b872424f4b497c4c9413ef1
treedc3561423d23e32eb1e03f1727990231f4fb1306
parentccea010104235ae74c59e216c73667125e5d24ad
CLEANUP: peers/cli: stop misusing the appctx local variable

In the context of a CLI command, it's particularly not welcome to use
an "appctx" variable that is not the current one. In addition it was
created for use at exactly 6 places in 2 lines. Let's just remove it
and stick to peer->appctx which is used elsewhere in the function and
is unambiguous.
src/peers.c