From: Willy Tarreau Date: Tue, 12 May 2026 13:56:10 +0000 (+0200) Subject: CLEANUP: tree-wide: fix typos in non user-visible comments in 3 more files X-Git-Url: http://www.kaiwu.me/sitemap.xml?a=commitdiff_plain;h=HEAD;p=haproxy.git CLEANUP: tree-wide: fix typos in non user-visible comments in 3 more files This fixes typos and spelling mistakes in the following files: xprt_quic.c, buf.c, dynbuf.h. --- diff --git a/include/haproxy/dynbuf.h b/include/haproxy/dynbuf.h index c8d7a5bcd..9b50b46c8 100644 --- a/include/haproxy/dynbuf.h +++ b/include/haproxy/dynbuf.h @@ -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 - * 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: @@ -138,7 +138,7 @@ static inline char *__b_get_emergency_buf(void) /* Ensures that 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. diff --git a/src/buf.c b/src/buf.c index 19f38e504..867c7671a 100644 --- 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; } -/* 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. 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 . Depending of the value, the resulting * buffer may also wrap. A temporary swap area at least as large as b->size must - * be provided in . It's up to the caller to ensuze is not larger + * be provided in . It's up to the caller to ensure is not larger * than b->size. */ void b_slow_realign_ofs(struct buffer *b, char *swap, size_t ofs) diff --git a/src/xprt_quic.c b/src/xprt_quic.c index 27cce68e5..5dee96850 100644 --- a/src/xprt_quic.c +++ b/src/xprt_quic.c @@ -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); - /* 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))