]> git.kaiwu.me - haproxy.git/commitdiff
CLEANUP: tree-wide: fix typos in non user-visible comments in 3 more files master
authorWilly Tarreau <w@1wt.eu>
Tue, 12 May 2026 13:56:10 +0000 (15:56 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 12 May 2026 15:07:55 +0000 (17:07 +0200)
This fixes typos and spelling mistakes in the following files:

xprt_quic.c, buf.c, dynbuf.h.

include/haproxy/dynbuf.h
src/buf.c
src/xprt_quic.c

index c8d7a5bcd88ac6fa9cbd6664c27512e158e21e7e..9b50b46c89a0752f9aab3b2d9a016dd5f309a75e 100644 (file)
@@ -107,7 +107,7 @@ static inline int b_may_alloc_for_crit(uint crit)
                return 0;
 
        /* If the emergency buffers are too low, we won't try to allocate a
                return 0;
 
        /* If the emergency buffers are too low, we won't try to allocate a
-        * buffer either so that we speed up their release. As a corrolary, it
+        * buffer either so that we speed up their release. As a corollary, it
         * means that we're always allowed to try to fall back to an emergency
         * buffer if pool_alloc() fails. The minimum number of available
         * emergency buffers for an allocation depends on the queue:
         * means that we're always allowed to try to fall back to an emergency
         * buffer if pool_alloc() fails. The minimum number of available
         * emergency buffers for an allocation depends on the queue:
@@ -138,7 +138,7 @@ static inline char *__b_get_emergency_buf(void)
 /* Ensures that <buf> is allocated, or allocates it. If no memory is available,
  * ((char *)1) is assigned instead with a zero size. The allocated buffer is
  * returned, or NULL in case no memory is available. Since buffers only contain
 /* Ensures that <buf> is allocated, or allocates it. If no memory is available,
  * ((char *)1) is assigned instead with a zero size. The allocated buffer is
  * returned, or NULL in case no memory is available. Since buffers only contain
- * user data, poisonning is always disabled as it brings no benefit and impacts
+ * user data, poisoning is always disabled as it brings no benefit and impacts
  * performance. Due to the difficult buffer_wait management, they are not
  * subject to forced allocation failures either. If other waiters are present
  * at higher criticality levels, we refrain from allocating.
  * performance. Due to the difficult buffer_wait management, they are not
  * subject to forced allocation failures either. If other waiters are present
  * at higher criticality levels, we refrain from allocating.
index 19f38e504d1b02656b25e1abd0d23f49999d20ce..867c7671aeb96bea22086f8a51ccd3877018847f 100644 (file)
--- a/src/buf.c
+++ b/src/buf.c
@@ -154,7 +154,7 @@ size_t b_getdelim(const struct buffer *buf, size_t offset, size_t count,
        return ret;
 }
 
        return ret;
 }
 
-/* Gets one text line out of aa buffer.
+/* Gets one text line out of a buffer.
  * Return values :
  *   >0 : number of bytes read. Includes the \n if present before len or end.
  *   =0 : no '\n' before end found. <str> is left undefined.
  * Return values :
  *   >0 : number of bytes read. Includes the \n if present before len or end.
  *   =0 : no '\n' before end found. <str> is left undefined.
@@ -243,7 +243,7 @@ void b_slow_realign(struct buffer *b, char *swap, size_t output)
 /* b_slow_realign_ofs() : this function realigns a possibly wrapping buffer
  * setting its new head at <ofs>. Depending of the <ofs> value, the resulting
  * buffer may also wrap. A temporary swap area at least as large as b->size must
 /* b_slow_realign_ofs() : this function realigns a possibly wrapping buffer
  * setting its new head at <ofs>. Depending of the <ofs> value, the resulting
  * buffer may also wrap. A temporary swap area at least as large as b->size must
- * be provided in <swap>. It's up to the caller to ensuze <ofs> is not larger
+ * be provided in <swap>. It's up to the caller to ensure <ofs> is not larger
  * than b->size.
  */
 void b_slow_realign_ofs(struct buffer *b, char *swap, size_t ofs)
  * than b->size.
  */
 void b_slow_realign_ofs(struct buffer *b, char *swap, size_t ofs)
index 27cce68e5fd1d818f099e6dee5e09cc5ca389572..5dee96850142d2dbde3c1e927debfa146f563854 100644 (file)
@@ -203,7 +203,7 @@ static int qc_xprt_start(struct connection *conn, void *ctx)
        qc = conn->handle.qc;
        TRACE_ENTER(QUIC_EV_CONN_NEW, qc);
 
        qc = conn->handle.qc;
        TRACE_ENTER(QUIC_EV_CONN_NEW, qc);
 
-       /* This has as side effet to create a SSL_SESSION object attached to
+       /* This has as side effect to create a SSL_SESSION object attached to
         * the SSL object.
         */
        if (qc_is_back(qc) && !qc_ssl_do_hanshake(qc, ctx))
         * the SSL object.
         */
        if (qc_is_back(qc) && !qc_ssl_do_hanshake(qc, ctx))