CLEANUP: cli: make "show fd" use a const connection to access other fields
authorWilly Tarreau <w@1wt.eu>
Wed, 20 Jan 2021 13:13:46 +0000 (14:13 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 28 Jan 2021 17:13:36 +0000 (18:13 +0100)
commit7f4973eca5849b894c7594af00f77bb9ecddfc0e
tree771ff536e217a6e78ed84607ebe9b19426802203
parent341fafce624c898649d946799a8a4af2a53ce475
CLEANUP: cli: make "show fd" use a const connection to access other fields

Over time the code has uglified, casting fdt.owner as a struct connection
for about everything. Let's have a const struct connection* there and take
this opportunity for passing all fields as const as well.

Additionally a misplaced closing parenthesis on the output was fixed.

(cherry picked from commit eb0595d039b5e5c56bf3f574ec7e364d926c406b)
[wt: s/sock_conn_iocb/conn_fd_handler]
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/cli.c