]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
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, 13 Mar 2025 16:30:48 +0000 (17:30 +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.

src/cli.c

index e7a33f57d41fb15d71d663179e86c7e076f3dd06..7bbfa3a8229cc253dfe903ffdf91c60b43b1097f 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;