CLEANUP: assorted typo fixes in the code and comments
This is 15th iteration of typo fixes
diff --git a/src/auth.c b/src/auth.c
index a3597d8..5d74f7a 100644
--- a/src/auth.c
+++ b/src/auth.c
@@ -49,7 +49,7 @@
#endif
/* find targets for selected groups. The function returns pointer to
- * the userlist struct ot NULL if name is NULL/empty or unresolvable.
+ * the userlist struct or NULL if name is NULL/empty or unresolvable.
*/
struct userlist *
diff --git a/src/cache.c b/src/cache.c
index 9485caa..9267f5c 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -713,7 +713,7 @@
/*
* This intends to be used when checking HTTP headers for some
* word=value directive. Return a pointer to the first character of value, if
- * the word was not found or if there wasn't any value assigned ot it return NULL
+ * the word was not found or if there wasn't any value assigned or it return NULL
*/
char *directive_value(const char *sample, int slen, const char *word, int wlen)
{
@@ -965,7 +965,7 @@
resp_encoding_bitmap |= VARY_ENCODING_IDENTITY;
/* Rewrite the bitmap part of the hash with the new bitmap that only
- * correponds the the response's encoding. */
+ * corresponds the the response's encoding. */
write_u32(secondary_key + offset, resp_encoding_bitmap);
}
@@ -2292,7 +2292,7 @@
unsigned int encoding_value;
unsigned int rejected_encoding;
- /* A user agent always accepts an unencoded value unless it explicitely
+ /* A user agent always accepts an unencoded value unless it explicitly
* refuses it through an "identity;q=0" accept-encoding value. */
hash.encoding_bitmap |= VARY_ENCODING_IDENTITY;
@@ -2318,12 +2318,12 @@
}
/* If a "*" was found in the accepted encodings (without a null weight),
- * all the encoding are accepted except the ones explicitely rejected. */
+ * all the encoding are accepted except the ones explicitly rejected. */
if (hash.encoding_bitmap & VARY_ENCODING_STAR) {
hash.encoding_bitmap = ~0;
}
- /* Clear explicitely rejected encodings from the bitmap */
+ /* Clear explicitly rejected encodings from the bitmap */
hash.encoding_bitmap &= encoding_bmp_bl;
/* As per RFC7231#5.3.4, "If no Accept-Encoding field is in the request,
diff --git a/src/ev_poll.c b/src/ev_poll.c
index b0b0e2b..f86be76 100644
--- a/src/ev_poll.c
+++ b/src/ev_poll.c
@@ -132,7 +132,7 @@
break;
if (fdtab[fd].update_mask & tid_bit) {
/* Cheat a bit, as the state is global to all pollers
- * we don't need every thread ot take care of the
+ * we don't need every thread or take care of the
* update.
*/
_HA_ATOMIC_AND(&fdtab[fd].update_mask, ~all_threads_mask);
diff --git a/src/ev_select.c b/src/ev_select.c
index aca1ea8..dd0b762 100644
--- a/src/ev_select.c
+++ b/src/ev_select.c
@@ -123,7 +123,7 @@
break;
if (fdtab[fd].update_mask & tid_bit) {
/* Cheat a bit, as the state is global to all pollers
- * we don't need every thread ot take care of the
+ * we don't need every thread or take care of the
* update.
*/
_HA_ATOMIC_AND(&fdtab[fd].update_mask, ~all_threads_mask);
diff --git a/src/fd.c b/src/fd.c
index 7cb864e..ccdefc6 100644
--- a/src/fd.c
+++ b/src/fd.c
@@ -165,7 +165,7 @@
}
__ha_barrier_store();
/* since we're alone at the end of the list and still locked(-2),
- * we know noone tried to add past us. Mark the end of list.
+ * we know no one tried to add past us. Mark the end of list.
*/
_GET_PREV(fd, off) = last;
_GET_NEXT(fd, off) = -1;
diff --git a/src/hlua.c b/src/hlua.c
index ca07bb8..a52a1b5 100644
--- a/src/hlua.c
+++ b/src/hlua.c
@@ -1706,7 +1706,7 @@
/* load the map. */
if (!sample_load_map(args, &conv, file, line, &err)) {
- /* error case: we cant use luaL_error because we must
+ /* error case: we can't use luaL_error because we must
* free the err variable.
*/
luaL_where(L, 1);
@@ -1803,11 +1803,11 @@
stream_shutdown(si_strm(si), SF_ERR_KILLED);
}
- /* If we cant write, wakeup the pending write signals. */
+ /* If we can't write, wakeup the pending write signals. */
if (channel_output_closed(si_ic(si)))
notification_wake(&appctx->ctx.hlua_cosocket.wake_on_write);
- /* If we cant read, wakeup the pending read signals. */
+ /* If we can't read, wakeup the pending read signals. */
if (channel_input_closed(si_oc(si)))
notification_wake(&appctx->ctx.hlua_cosocket.wake_on_read);
@@ -8589,7 +8589,7 @@
* - only the function_ref[0] set to -1 and all other positive
* This ensure a same reference is not used both in shared
* lua state and thread dedicated lua state. Note: is the case
- * reach, the shared state is prioritary, but the bug will be
+ * reach, the shared state is priority, but the bug will be
* complicated to found for the end user.
*/
errors = 0;
@@ -8609,8 +8609,8 @@
}
if ((fcn->function_ref[0] == -1) == (ret < 0)) {
- ha_alert("Lua function '%s' is referenced both ins shared Lua context (throught lua-load) "
- "and per-thread Lua context (throught lua-load-per-thread). these two context "
+ ha_alert("Lua function '%s' is referenced both ins shared Lua context (through lua-load) "
+ "and per-thread Lua context (through lua-load-per-thread). these two context "
"exclusive.\n", fcn->name);
errors++;
}
@@ -8619,7 +8619,7 @@
if (errors > 0)
return 0;
- /* after this point, this global wil no longer used, so set to
+ /* after this point, this global will no longer be used, so set to
* -1 in order to have probably a segfault if someone use it
*/
hlua_state_id = -1;
diff --git a/src/mux_h1.c b/src/mux_h1.c
index 3ed0001..75eb5f7 100644
--- a/src/mux_h1.c
+++ b/src/mux_h1.c
@@ -1125,11 +1125,11 @@
if (eb_is_empty(&hdrs_map.map))
return;
- /* No conversion fo the request headers */
+ /* No conversion for the request headers */
if (!(h1m->flags & H1_MF_RESP) && !(h1s->h1c->px->options2 & PR_O2_H1_ADJ_BUGSRV))
return;
- /* No conversion fo the response headers */
+ /* No conversion for the response headers */
if ((h1m->flags & H1_MF_RESP) && !(h1s->h1c->px->options2 & PR_O2_H1_ADJ_BUGCLI))
return;
diff --git a/src/proto_quic.c b/src/proto_quic.c
index 8b3e91b..fa36ba7 100644
--- a/src/proto_quic.c
+++ b/src/proto_quic.c
@@ -574,7 +574,7 @@
static void quic_enable_listener(struct listener *l)
{
/* FIXME: The following statements are incorrect. This
- * is the responsability of the QUIC xprt to stop accepting new
+ * is the responsibility of the QUIC xprt to stop accepting new
* connections.
*/
if (fd_updt)
@@ -587,7 +587,7 @@
static void quic_disable_listener(struct listener *l)
{
/* FIXME: The following statements are incorrect. This
- * is the responsability of the QUIC xprt to start accepting new
+ * is the responsibility of the QUIC xprt to start accepting new
* connections again.
*/
if (fd_updt)
diff --git a/src/stream.c b/src/stream.c
index e24ea49..5e675b1 100644
--- a/src/stream.c
+++ b/src/stream.c
@@ -2004,7 +2004,7 @@
*/
- /* If noone is interested in analysing data, it's time to forward
+ /* If no one is interested in analysing data, it's time to forward
* everything. We configure the buffer to forward indefinitely.
* Note that we're checking CF_SHUTR_NOW as an indication of a possible
* recent call to channel_abort().
@@ -2175,7 +2175,7 @@
/* perform output updates to the response buffer */
- /* If noone is interested in analysing data, it's time to forward
+ /* If no one is interested in analysing data, it's time to forward
* everything. We configure the buffer to forward indefinitely.
* Note that we're checking CF_SHUTR_NOW as an indication of a possible
* recent call to channel_abort().