From: Christopher Faulet Date: Thu, 23 Apr 2026 08:42:31 +0000 (+0200) Subject: CLEANUP: cli: Fix typos in comments X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=98e1ff7f2c98f9720f42472b08f97e6b28432a4b;p=thirdparty%2Fhaproxy.git CLEANUP: cli: Fix typos in comments Some minor typos in comments were fixed. --- diff --git a/include/haproxy/applet-t.h b/include/haproxy/applet-t.h index 1b642edcf..4c8b3cb50 100644 --- a/include/haproxy/applet-t.h +++ b/include/haproxy/applet-t.h @@ -107,7 +107,7 @@ struct appctx { enum obj_type obj_type; /* OBJ_TYPE_APPCTX */ /* 3 unused bytes here */ unsigned int st0; /* Main applet state. May be used by any applet */ - unsigned int st1; /* Applet substate. Mau be used by any applet */ + unsigned int st1; /* Applet substate. May be used by any applet */ unsigned int flags; /* APPCTX_FL_* */ struct buffer inbuf; diff --git a/src/cli.c b/src/cli.c index ef9a5257a..5f875ac7d 100644 --- a/src/cli.c +++ b/src/cli.c @@ -782,7 +782,7 @@ static int cli_get_severity_output(struct appctx *appctx) * from the CLI's IO handler running in an appctx context. The function returns * 1 if the request was understood, otherwise zero (in which case an error * message will be displayed). It is called with appctx->st0 set to - * CLI_ST_PROMPT. It will possilbly leave st0 to CLI_ST_CALLBACK if the + * CLI_ST_PROMPT. It will possibly leave st0 to CLI_ST_CALLBACK if the * keyword needs to have its own I/O handler called again. Most of the time, * parsers will only set st0 to CLI_ST_PRINT and put their message to be * displayed into cli.msg. If a keyword parser is NULL and an I/O handler is @@ -1062,7 +1062,7 @@ int cli_parse_cmdline(struct appctx *appctx) goto error; } - /* A bigger payload buffer was allcated, wait for more data */ + /* A bigger payload buffer was allocated, wait for more data */ b_xfer(buf, &appctx->inbuf, b_data(&appctx->inbuf)); applet_fl_clr(appctx, APPCTX_FL_INBLK_FULL); } @@ -1440,7 +1440,7 @@ static void cli_release_handler(struct appctx *appctx) } } -/* This function dumps all environmnent variables to the buffer. It returns 0 +/* This function dumps all environment variables to the buffer. It returns 0 * if the output buffer is full and it needs to be called again, otherwise * non-zero. It takes its context from the show_env_ctx in svcctx, and will * start from ->var and dump only one variable if ->show_one is set.