]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: fix a few reported typos in code comments
authorWilly Tarreau <w@1wt.eu>
Sun, 7 May 2023 05:07:44 +0000 (07:07 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 7 May 2023 05:07:44 +0000 (07:07 +0200)
These are only the few relevant changes among those reported here:

  https://github.com/haproxy/haproxy/actions/runs/4856148287/jobs/8655397661

include/haproxy/sock_inet.h
src/cli.c
src/quic_conn.c
src/tcpcheck.c

index 1e34ff4c73f05e24a241c2276727b1ba66c16a0e..6f07e637a7cb6ccbab6a0581d430d4a843415213 100644 (file)
@@ -34,7 +34,7 @@ extern int sock_inet6_tcp_maxseg_default;
 extern struct proto_fam proto_fam_inet4;
 extern struct proto_fam proto_fam_inet6;
 
-/* extrenal types */
+/* external types */
 struct receiver;
 
 int sock_inet4_addrcmp(const struct sockaddr_storage *a, const struct sockaddr_storage *b);
index 977e228695de5ee422a7422ecfbe0a3bafaf6ec3..7d058c5743c7feed5d3543d410fddaf4cfc74174 100644 (file)
--- a/src/cli.c
+++ b/src/cli.c
@@ -2682,7 +2682,7 @@ send_help:
 
 send_status:
        s->pcli_flags |= PCLI_F_RELOAD;
-       /* dont' use ci_putblk here because SHUT_DONE could have been sent */
+       /* don't use ci_putblk here because SHUT_DONE could have been sent */
        b_reset(&req->buf);
        b_putblk(&req->buf, "_loadstatus;quit\n", 17);
        goto read_again;
index c3e0beccf6ec955392f0bf19d8dd8a85b3862e36..849beb20bd9006a92158a5d558f949d0f10a00b1 100644 (file)
@@ -6131,7 +6131,7 @@ static inline const struct quic_version *qc_supported_version(uint32_t version)
        return NULL;
 }
 
-/* Parse a QUIC packet header starting at <pos> postion without exceeding <end>.
+/* Parse a QUIC packet header starting at <pos> position without exceeding <end>.
  * Version and type are stored in <pkt> packet instance. Type is set to unknown
  * on two occasions : for unsupported version, in this case version field is
  * set to NULL; for Version Negotiation packet with version number set to 0.
@@ -8373,7 +8373,7 @@ int qc_check_dcid(struct quic_conn *qc, unsigned char *dcid, size_t dcid_len)
        return 0;
 }
 
-/* Retrieve the DCID from a QUIC datagram or packet at <pos> postition,
+/* Retrieve the DCID from a QUIC datagram or packet at <pos> position,
  * <end> being at one byte past the end of this datagram.
  * Returns 1 if succeeded, 0 if not.
  */
index 117be327513f19935600f452c4aa18616c4efcff..c36b9d9a62aec96cc2e9112cae1b095307fd2166 100644 (file)
@@ -2048,7 +2048,7 @@ enum tcpcheck_eval_ret tcpcheck_eval_expect(struct check *check, struct tcpcheck
 
        case TCPCHK_EXPECT_CUSTOM:
                /* Don't eval custom function if the buffer is empty. It means
-                * cusstom functions can't expect an empty response. If this
+                * custom functions can't expect an empty response. If this
                 * change, don't forget to change this test and update all
                 * custom functions.
                 */