]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: haterm: Fix typos in comments
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 23 Apr 2026 07:30:45 +0000 (09:30 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 23 Apr 2026 08:49:13 +0000 (10:49 +0200)
Some minor typos in comments were fixed.

src/haterm.c
src/haterm_init.c

index 04bd790d5dc9851cd66c933e555b8e2e4be54c54..939e129a1045871a3a1972638aa912e1e4d1c9d5 100644 (file)
@@ -33,7 +33,7 @@ DECLARE_TYPED_POOL(pool_head_hstream, "hstream", struct hstream);
 #define HS_ST_OPT_CHUNK_RES     0x0080 /* chunk-encoded response (?k=1) */
 #define HS_ST_OPT_REQ_AFTER_RES 0x0100 /* drain the request payload after the response (?A=1) */
 #define HS_ST_OPT_RANDOM_RES    0x0200 /* random response (?R=1) */
-#define HS_ST_OPT_NO_CACHE      0x0400 /* non-cacheable resposne (?c=0) */
+#define HS_ST_OPT_NO_CACHE      0x0400 /* non-cacheable response (?c=0) */
 #define HS_ST_OPT_NO_SPLICING   0x0800 /* no splicing (?S=1) */
 
 const char *HTTP_HELP =
@@ -323,7 +323,7 @@ static int hstream_ff_snd(struct connection *conn, struct hstream *hs)
        struct sedesc *sd = hs->sc->sedesc;
        int ret = 0;
 
-       /* First try to resume FF*/
+       /* First try to resume FF */
        if (se_have_ff_data(sd)) {
                ret = CALL_MUX_WITH_RET(conn->mux, resume_fastfwd(hs->sc, 0));
                if (ret > 0)
@@ -370,7 +370,7 @@ static int hstream_ff_snd(struct connection *conn, struct hstream *hs)
   done:
        if (se_done_ff(sd) != 0 || !(sd->iobuf.flags & (IOBUF_FL_FF_BLOCKED|IOBUF_FL_FF_WANT_ROOM))) {
                /* Something was forwarding or the consumer states it is not
-                * blocked anyore, don't reclaim more room */
+                * blocked anymore, don't reclaim more room */
        }
 
        if (se_have_ff_data(sd)) {
@@ -1060,7 +1060,7 @@ static struct task *process_hstream(struct task *t, void *context, unsigned int
 
  send_done:
                if (hs->req_body && (hs->flags & HS_ST_OPT_REQ_AFTER_RES) && !hs->to_write) {
-                       /* Response sending has just complete. The body will be drained upon
+                       /* Response sending has just completed. The body will be drained upon
                         * next wakeup.
                         */
                        TRACE_STATE("waking up task", HS_EV_HSTRM_IO_CB, hs);
index 06752c4ca2072b75b5e1072608689cc2f818ce93..a56ac3eb3238672d818f9ed07d4fe9a1450bfc4f 100644 (file)
@@ -23,7 +23,7 @@ static void haterm_usage(char *name)
                "        -C : dump the configuration and exit\n"
                "        -D : goes daemon\n"
                "        -b <keysize> : RSA key size in bits (ex: \"2048\", \"4096\"...)\n"
-               "        -c <curves> : ECSDA curves (ex: \"P-256\", \"P-384\"...)\n"
+               "        -c <curves> : ECDSA curves (ex: \"P-256\", \"P-384\"...)\n"
                "        -v : shows version\n"
                "        -d : enable the traces for all http protocols\n"
                "        -dS : disables splice() usage even when available\n"