]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DEBUG: cli: unstatify cli_process_cmdline()
authorWilly Tarreau <w@1wt.eu>
Tue, 11 Aug 2026 13:26:52 +0000 (15:26 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 13 Aug 2026 15:43:30 +0000 (17:43 +0200)
There's no point keeping this function static, and because of this it's
never resolved in backtraces despite appearing quite often since it's
located between the io_handler and various parse functions that may
possiblly trigger issues. So let's remove the static modifier on it.

src/cli.c

index 42e260bb9ae30957be648cfbf346ba4d6c2df93a..d3569fdc109ed69c043eda4188b4e4ed101064d0 100644 (file)
--- a/src/cli.c
+++ b/src/cli.c
@@ -787,7 +787,7 @@ static int cli_get_severity_output(struct appctx *appctx)
  * displayed into cli.msg.  If a keyword parser is NULL and an I/O handler is
  * declared, the I/O handler will automatically be used.
  */
-static int cli_process_cmdline(struct appctx *appctx)
+int cli_process_cmdline(struct appctx *appctx)
 {
        char *args[MAX_CLI_ARGS + 1], *orig, *p, *end, *payload = NULL;
        char *end_of_cmdline;