CLEANUP: cli: make "show fd" use its own context
authorWilly Tarreau <w@1wt.eu>
Thu, 5 May 2022 15:56:58 +0000 (17:56 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 May 2022 16:13:36 +0000 (18:13 +0200)
commit741a5a9cb4803e1e8e6b56dd2344289aa5f329c1
treea9e80c4ba50420fce43ddfb3498759a591f635c0
parentacf6a44908dad73a375edc5eac1c55bd0aebd5d1
CLEANUP: cli: make "show fd" use its own context

The "show fd" command used to rely on cli.i0 for the fd, and st2 just
to decide whether to stop after the first value or not. It could have
been possible to decide to use just a negative integer to dump a single
value, but it's as easy and more durable to declare a two-field struct
show_fd_ctx for this.
src/cli.c