CLEANUP: assorted typo fixes in the code and comments
This is 32nd iteration of typo fixes
diff --git a/src/cfgparse-quic.c b/src/cfgparse-quic.c
index f6706f2..ee23dc8 100644
--- a/src/cfgparse-quic.c
+++ b/src/cfgparse-quic.c
@@ -22,7 +22,7 @@
struct quic_cc_algo *cc_algo;
if (!*args[cur_arg + 1]) {
- memprintf(err, "'%s' : missing control congestion algorith", args[cur_arg]);
+ memprintf(err, "'%s' : missing control congestion algorithm", args[cur_arg]);
return ERR_ALERT | ERR_FATAL;
}
diff --git a/src/cfgparse.c b/src/cfgparse.c
index f80008c..a7652e9 100644
--- a/src/cfgparse.c
+++ b/src/cfgparse.c
@@ -2020,7 +2020,7 @@
qfprintf(stdout, "%s %s\n", args[0], args[1]);
}
- /* It concerns user in global secion and in userlist */
+ /* It concerns user in global section and in userlist */
else if (strcmp(args[0], "user") == 0) {
qfprintf(stdout, "%s %s ", args[0], HA_ANON_ID(g_key, args[1]));
diff --git a/src/clock.c b/src/clock.c
index bdbe3cc..eac4251 100644
--- a/src/clock.c
+++ b/src/clock.c
@@ -348,7 +348,7 @@
/* Collect date and time information before calling poll(). This will be used
* to count the run time of the past loop and the sleep time of the next poll.
- * It also compares the elasped and cpu times during the activity period to
+ * It also compares the elapsed and cpu times during the activity period to
* estimate the amount of stolen time, which is reported if higher than half
* a millisecond.
*/
diff --git a/src/errors.c b/src/errors.c
index 96ed60d..8221adb 100644
--- a/src/errors.c
+++ b/src/errors.c
@@ -105,7 +105,7 @@
}
/*
- * Use a shm accross reexec of the master.
+ * Use a shm across reexec of the master.
*
* During the startup of the master, a shm_open must be done and the FD saved
* into the HAPROXY_STARTUPLOGS_FD environment variable.
diff --git a/src/hlua.c b/src/hlua.c
index 9b646bc..b8f727f 100644
--- a/src/hlua.c
+++ b/src/hlua.c
@@ -3966,7 +3966,7 @@
else
HLUA_SET_WAKEREQWR(hlua);
- /* Otherwise, we can yield waiting for new data in the inpout side. */
+ /* Otherwise, we can yield waiting for new data in the input side. */
MAY_LJMP(hlua_yieldk(L, 0, 0, hlua_channel_forward_yield, TICK_ETERNITY, 0));
}
diff --git a/src/http_ana.c b/src/http_ana.c
index 2b2cfdc..d667f14 100644
--- a/src/http_ana.c
+++ b/src/http_ana.c
@@ -4326,7 +4326,7 @@
location = ist2(trash.area, trash.data);
/*
- * Create the 302 respone
+ * Create the 302 response
*/
htx = htx_from_buf(&res->buf);
flags = (HTX_SL_F_IS_RESP|HTX_SL_F_VER_11|HTX_SL_F_XFER_LEN|HTX_SL_F_BODYLESS);
diff --git a/src/mux_h1.c b/src/mux_h1.c
index 2dcbf14..5511e1b 100644
--- a/src/mux_h1.c
+++ b/src/mux_h1.c
@@ -849,7 +849,7 @@
TRACE_STATE("set idle mode on h1c, waiting for the next request", H1_EV_H1C_ERR, h1c->conn, h1s);
}
else {
- TRACE_STATE("set shudown on h1c", H1_EV_H1S_END, h1c->conn, h1s);
+ TRACE_STATE("set shutdown on h1c", H1_EV_H1S_END, h1c->conn, h1s);
h1c->flags |= H1C_F_ST_SHUTDOWN;
}
diff --git a/src/peers.c b/src/peers.c
index 4434fa3..8477c43 100644
--- a/src/peers.c
+++ b/src/peers.c
@@ -2819,7 +2819,7 @@
/* if st->update appears to be in future it means
* that the last acked value is very old and we
* remain unconnected a too long time to use this
- * acknowlegement as a reset.
+ * acknowledgement as a reset.
* We should update the protocol to be able to
* signal the remote peer that it needs a full resync.
* Here a partial fix consist to set st->update at
@@ -2874,7 +2874,7 @@
/* if st->update appears to be in future it means
* that the last acked value is very old and we
* remain unconnected a too long time to use this
- * acknowlegement as a reset.
+ * acknowledgement as a reset.
* We should update the protocol to be able to
* signal the remote peer that it needs a full resync.
* Here a partial fix consist to set st->update at
diff --git a/src/quic_conn.c b/src/quic_conn.c
index c10a8ca..a110e9c 100644
--- a/src/quic_conn.c
+++ b/src/quic_conn.c
@@ -3112,7 +3112,7 @@
TRACE_ENTER(QUIC_EV_CONN_PHPKTS, qc);
/* Currently qc_prep_pkts() does not handle buffer wrapping so the
- * caller must ensure that buf is resetted.
+ * caller must ensure that buf is reset.
*/
BUG_ON_HOT(buf->head || buf->data);
@@ -3838,7 +3838,7 @@
}
/* Process all the CRYPTO frame at <el> encryption level. This is the
- * responsability of the called to ensure there exists a CRYPTO data
+ * responsibility of the called to ensure there exists a CRYPTO data
* stream for this level.
* Return 1 if succeeded, 0 if not.
*/
@@ -5461,7 +5461,7 @@
/* QUIC server only function.
* Generate the token to be used in Retry packets. The token is written to
- * <buf> whith <len> as length. <odcid> is the original destination connection
+ * <buf> with <len> as length. <odcid> is the original destination connection
* ID and <dcid> is our side destination connection ID (or client source
* connection ID).
* Returns the length of the encoded token or 0 on error.
@@ -6599,7 +6599,7 @@
new_cf->crypto.len = dlen;
new_cf->crypto.offset = cf->crypto.offset;
new_cf->crypto.qel = qel;
- TRACE_DEVEL("splitted frame", QUIC_EV_CONN_PRSAFRM, qc, new_cf);
+ TRACE_DEVEL("split frame", QUIC_EV_CONN_PRSAFRM, qc, new_cf);
if (cf->origin) {
TRACE_DEVEL("duplicated frame", QUIC_EV_CONN_PRSAFRM, qc);
/* This <cf> frame was duplicated */
@@ -6716,7 +6716,7 @@
/* FIN bit reset */
new_cf->type &= ~QUIC_STREAM_FRAME_TYPE_FIN_BIT;
new_cf->stream.data = cf->stream.data;
- TRACE_DEVEL("splitted frame", QUIC_EV_CONN_PRSAFRM, qc, new_cf);
+ TRACE_DEVEL("split frame", QUIC_EV_CONN_PRSAFRM, qc, new_cf);
if (cf->origin) {
TRACE_DEVEL("duplicated frame", QUIC_EV_CONN_PRSAFRM, qc);
/* This <cf> frame was duplicated */
diff --git a/src/quic_sock.c b/src/quic_sock.c
index 52632fe..a8da3cb 100644
--- a/src/quic_sock.c
+++ b/src/quic_sock.c
@@ -213,7 +213,7 @@
* found or end of the list is hit. The last unused datagram found is not freed
* and is instead returned so that the caller can reuse it if needed.
*
- * Returns the last unused datagram or NULL if no occurence found.
+ * Returns the last unused datagram or NULL if no occurrence found.
*/
static struct quic_dgram *quic_rxbuf_purge_dgrams(struct quic_receiver_buf *buf)
{
diff --git a/src/quic_stats.c b/src/quic_stats.c
index 6523951..71820d2 100644
--- a/src/quic_stats.c
+++ b/src/quic_stats.c
@@ -16,7 +16,7 @@
[QUIC_ST_SENDTO_ERR] = { .name = "quic_sendto_err",
.desc = "Total number of error on sendto() calls, EAGAIN excepted" },
[QUIC_ST_SENDTO_ERR_UNKNWN] = { .name = "quic_sendto_err_unknwn",
- .desc = "Total number of error on sendto() calls not explicitely listed" },
+ .desc = "Total number of error on sendto() calls not explicitly listed" },
[QUIC_ST_LOST_PACKET] = { .name = "quic_lost_pkt",
.desc = "Total number of lost sent packets" },
[QUIC_ST_TOO_SHORT_INITIAL_DGRAM] = { .name = "quic_too_short_dgram",
diff --git a/src/quic_tp.c b/src/quic_tp.c
index 2be6d51..485ca2d 100644
--- a/src/quic_tp.c
+++ b/src/quic_tp.c
@@ -636,8 +636,8 @@
/* QUIC server (or haproxy listener) only function.
* Initialize the local transport parameters <rx_params> from <listener_params>
- * coming from configuration and Initial packet information (destintation
- * connection ID, source connection ID, original destination connection ID from
+ * coming from configuration and Initial packet information (destination
+ * connection ID, source connection ID, original destination connection ID) from
* client token.
* Returns 1 if succeeded, 0 if not.
*/