MINOR: cli: export cli_io_handler() to ease symbol resolution
authorWilly Tarreau <w@1wt.eu>
Thu, 13 Mar 2025 16:28:12 +0000 (17:28 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 20 Mar 2025 10:12:27 +0000 (11:12 +0100)
It's common to meet this function in backtraces, it's a bit annoying
that it's not resolved, so let's export it so that it becomes resolvable.

(cherry picked from commit 1e99efccef21394f0b5e5940001aaee8b3cd6b4b)
Signed-off-by: Willy Tarreau <w@1wt.eu>

src/cli.c

index 9669b38..c5bd4fb 100644 (file)
--- a/src/cli.c
+++ b/src/cli.c
@@ -1059,7 +1059,7 @@ size_t cli_snd_buf(struct appctx *appctx, struct buffer *buf, size_t count, unsi
  * CLI_ST_* constants. appctx->st1 is used to indicate whether prompt is enabled
  * or not.
  */
-static void cli_io_handler(struct appctx *appctx)
+void cli_io_handler(struct appctx *appctx)
 {
        if (applet_fl_test(appctx, APPCTX_FL_OUTBLK_ALLOC|APPCTX_FL_OUTBLK_FULL))
                goto out;