hello,

yet another spelling patch.

cheers,
Ilya
From c12cd6be4bc937b5d708e1bd646d732b5aae2cd6 Mon Sep 17 00:00:00 2001
From: Ilya Shipitsin <chipits...@gmail.com>
Date: Wed, 30 Nov 2022 16:22:42 +0500
Subject: [PATCH] CLEANUP: assorted typo fixes in the code and comments

This is 33rd iteration of typo fixes
---
 MAINTAINERS                                 | 2 +-
 doc/configuration.txt                       | 8 ++++----
 include/haproxy/cli-t.h                     | 4 ++--
 include/haproxy/cli.h                       | 4 ++--
 include/haproxy/mux_fcgi-t.h                | 2 +-
 include/haproxy/mux_h1-t.h                  | 2 +-
 include/haproxy/quic_loss.h                 | 2 +-
 include/haproxy/server.h                    | 2 +-
 include/import/xxhash.h                     | 2 +-
 reg-tests/checks/4be_1srv_health_checks.vtc | 2 +-
 src/haproxy.c                               | 2 +-
 src/hlua.c                                  | 2 +-
 src/http.c                                  | 2 +-
 src/http_htx.c                              | 2 +-
 src/resolvers.c                             | 2 +-
 15 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/MAINTAINERS b/MAINTAINERS
index c56ac24a2..d4b7980ca 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -12,7 +12,7 @@ listed for a subsystem, you can simply send your changes the 
usual way, and it
 is also a sign that if you want to strengthen your skills on certain parts you
 can become yourself a maintainer of the parts you care a lot about.
 
-Please do not ask them to troubleshoot your bugs, it's not their job eventhough
+Please do not ask them to troubleshoot your bugs, it's not their job even 
though
 they may occasionally help as time permits.
 
 List of maintainers
diff --git a/doc/configuration.txt b/doc/configuration.txt
index 769714cd9..cba147c09 100644
--- a/doc/configuration.txt
+++ b/doc/configuration.txt
@@ -1844,9 +1844,9 @@ lua-load <file> [ <arg1> [ <arg2> [ ... ] ] ]
   way will always see 0 in the "core.thread" variable. This directive can be
   used multiple times.
 
-  args are avalaible in the lua file using the code below in the body of the
+  args are available in the lua file using the code below in the body of the
   file. Do not forget that Lua arrays start at index 1. A "local" variable
-  declared in a file is avalaible in the entire file and not avalaible on
+  declared in a file is available in the entire file and not available on
   other files.
 
      local args = table.pack(...)
@@ -14144,7 +14144,7 @@ ca-file <cafile>
   directive. But you mustn't use it unless you know what you are doing.
   Configuring it this way basically mean that the bind will accept any client
   certificate generated from one of the CA present on your system, which is
-  extremely unsecure.
+  extremely insecure.
 
 ca-ignore-err [all|<errorID>,...]
   This setting is only available when support for OpenSSL was built in.
@@ -23368,7 +23368,7 @@ for the cache filter.
 
 There are two kinds of bandwidth limitation filters. The first one enforces a
 default limit and is applied per stream. The second one uses a stickiness table
-to enfore a limit equally divided between all streams sharing the same entry in
+to enforce a limit equally divided between all streams sharing the same entry 
in
 the table.
 
 In addition, for a given filter, depending on the filter keyword used, the
diff --git a/include/haproxy/cli-t.h b/include/haproxy/cli-t.h
index 5d2c07977..104b0b157 100644
--- a/include/haproxy/cli-t.h
+++ b/include/haproxy/cli-t.h
@@ -58,8 +58,8 @@ enum {
        CLI_ST_PRINT_ERR,  /* display const error in cli->msg */
        CLI_ST_PRINT_DYN,  /* display dynamic message in cli->err. After the 
display, free the pointer */
        CLI_ST_PRINT_DYNERR, /* display dynamic error in cli->err. After the 
display, free the pointer */
-       CLI_ST_PRINT_UMSG, /* display usermsgs_ctx buffer. After the display, 
usermsgs_ctx is resetted. */
-       CLI_ST_PRINT_UMSGERR, /* display usermsgs_ctx buffer as error. After 
the display, usermsgs_ctx is resetted. */
+       CLI_ST_PRINT_UMSG, /* display usermsgs_ctx buffer. After the display, 
usermsgs_ctx is reset. */
+       CLI_ST_PRINT_UMSGERR, /* display usermsgs_ctx buffer as error. After 
the display, usermsgs_ctx is reset. */
        CLI_ST_CALLBACK,   /* custom callback pointer */
 };
 
diff --git a/include/haproxy/cli.h b/include/haproxy/cli.h
index 6b049b855..32c659944 100644
--- a/include/haproxy/cli.h
+++ b/include/haproxy/cli.h
@@ -109,7 +109,7 @@ static inline int cli_dynerr(struct appctx *appctx, char 
*err)
 }
 
 /* updates the CLI's context to log messages stored in thread-local
- * usermsgs_ctx at <severity> level. usermsgs_ctx will be resetted when done.
+ * usermsgs_ctx at <severity> level. usermsgs_ctx will be reset when done.
  * This is for use in CLI parsers to deal with quick response messages.
  *
  * Always returns 1.
@@ -124,7 +124,7 @@ static inline int cli_umsg(struct appctx *appctx, int 
severity)
 }
 
 /* updates the CLI's context to log messages stored in thread-local
- * usermsgs_ctx using error level. usermsgs_ctx will be resetted when done.
+ * usermsgs_ctx using error level. usermsgs_ctx will be reset when done.
  * This is for use in CLI parsers to deal with quick response messages.
  *
  * Always returns 1.
diff --git a/include/haproxy/mux_fcgi-t.h b/include/haproxy/mux_fcgi-t.h
index 4599a36da..27973dbf4 100644
--- a/include/haproxy/mux_fcgi-t.h
+++ b/include/haproxy/mux_fcgi-t.h
@@ -28,7 +28,7 @@
 /**** FCGI connection flags (32 bit), in fcgi_conn->flags ****/
 #define FCGI_CF_NONE           0x00000000
 
-/* Flags indicating why writing to the mux is blockes */
+/* Flags indicating why writing to the mux is blocked */
 #define FCGI_CF_MUX_MALLOC      0x00000001 /* mux is blocked on lack 
connection's mux buffer */
 #define FCGI_CF_MUX_MFULL       0x00000002 /* mux is blocked on connection's 
mux buffer full */
 #define FCGI_CF_MUX_BLOCK_ANY   0x00000003 /* mux is blocked on connection's 
mux buffer full */
diff --git a/include/haproxy/mux_h1-t.h b/include/haproxy/mux_h1-t.h
index 8d4c3a4ad..edf4459da 100644
--- a/include/haproxy/mux_h1-t.h
+++ b/include/haproxy/mux_h1-t.h
@@ -51,7 +51,7 @@
 #define H1C_F_CO_MSG_MORE    0x00020000 /* set if CO_SFL_MSG_MORE must be set 
when calling xprt->snd_buf() */
 #define H1C_F_CO_STREAMER    0x00040000 /* set if CO_SFL_STREAMER must be set 
when calling xprt->snd_buf() */
 
-/* 0x00040000 - 0x40000000 unusued*/
+/* 0x00040000 - 0x40000000 unused */
 #define H1C_F_IS_BACK        0x80000000 /* Set on outgoing connection */
 
 
diff --git a/include/haproxy/quic_loss.h b/include/haproxy/quic_loss.h
index 0f6098e01..e4cb82f2c 100644
--- a/include/haproxy/quic_loss.h
+++ b/include/haproxy/quic_loss.h
@@ -40,7 +40,7 @@ static inline void quic_loss_init(struct quic_loss *ql)
        ql->pto_count = 0;
 }
 
-/* Return 1 if a persitent congestion is observed for a list of
+/* Return 1 if a persistent congestion is observed for a list of
  * lost packets sent during <period> period depending on <ql> loss information,
  * <now_us> the current time and <max_ack_delay_us> the maximum ACK delay of 
the connection
  * experiencing a packet loss. Return 0 on the contrary.
diff --git a/include/haproxy/server.h b/include/haproxy/server.h
index 85cf98f4e..6dc905a17 100644
--- a/include/haproxy/server.h
+++ b/include/haproxy/server.h
@@ -162,7 +162,7 @@ void srv_set_admin_flag(struct server *s, enum srv_admin 
mode, const char *cause
  */
 void srv_clr_admin_flag(struct server *s, enum srv_admin mode);
 
-/* Calculates the dynamic persitent cookie for a server, if a secret key has
+/* Calculates the dynamic persistent cookie for a server, if a secret key has
  * been provided.
  */
 void srv_set_dyncookie(struct server *s);
diff --git a/include/import/xxhash.h b/include/import/xxhash.h
index 08ab79457..7b028edcf 100644
--- a/include/import/xxhash.h
+++ b/include/import/xxhash.h
@@ -2837,7 +2837,7 @@ enum XXH_VECTOR_TYPE /* fake enum */ {
  * @ingroup tuning
  * @brief Selects the minimum alignment for XXH3's accumulators.
  *
- * When using SIMD, this should match the alignment reqired for said vector
+ * When using SIMD, this should match the alignment required for said vector
  * type, so, for example, 32 for AVX2.
  *
  * Default: Auto detected.
diff --git a/reg-tests/checks/4be_1srv_health_checks.vtc 
b/reg-tests/checks/4be_1srv_health_checks.vtc
index 88b631ad3..02564be54 100644
--- a/reg-tests/checks/4be_1srv_health_checks.vtc
+++ b/reg-tests/checks/4be_1srv_health_checks.vtc
@@ -7,7 +7,7 @@ feature ignore_unknown_macro
 
 # This script test health-checks for four backends with one server by backend.
 # A syslog server is attached to each backend to check the syslog messages
-# in the righ order.
+# in the right order.
 
 # First, we check a health-check has passed for all the servers thanks to the 
syslog
 # messages. Then each server is disabled. The health-check status are checked.
diff --git a/src/haproxy.c b/src/haproxy.c
index 1650147cf..4fad8371c 100644
--- a/src/haproxy.c
+++ b/src/haproxy.c
@@ -2304,7 +2304,7 @@ static void init(int argc, char **argv)
 
 #if (HA_OPENSSL_VERSION_NUMBER < 0x1010000fL)
        /* Initialize the error strings of OpenSSL
-        * It only needs to be done explicitely with older versions of the SSL
+        * It only needs to be done explicitly with older versions of the SSL
         * library. On newer versions, errors strings are loaded during start
         * up. */
        SSL_load_error_strings();
diff --git a/src/hlua.c b/src/hlua.c
index 7a666d491..75176a685 100644
--- a/src/hlua.c
+++ b/src/hlua.c
@@ -8579,7 +8579,7 @@ __LJMP static int hlua_register_init(lua_State *L)
        return 0;
 }
 
-/* This functio is an LUA binding. It permits to register a task
+/* This function is an LUA binding. It permits to register a task
  * executed in parallel of the main HAroxy activity. The task is
  * created and it is set in the HAProxy scheduler. It can be called
  * from the "init" section, "post init" or during the runtime.
diff --git a/src/http.c b/src/http.c
index c52277533..d462ad54a 100644
--- a/src/http.c
+++ b/src/http.c
@@ -480,7 +480,7 @@ const char *http_get_reason(unsigned int status)
 
 /* Returns the ist string corresponding to port part (without ':') in the host
  * <host>, IST_NULL if no ':' is found or an empty IST if there is no digit. In
- * the last case, the result is the original ist trimed to 0. So be sure to 
test
+ * the last case, the result is the original ist trimmed to 0. So be sure to 
test
  * the result length before doing any pointer arithmetic.
 */
 struct ist http_get_host_port(const struct ist host)
diff --git a/src/http_htx.c b/src/http_htx.c
index 7cfaca4a4..5cb0b2948 100644
--- a/src/http_htx.c
+++ b/src/http_htx.c
@@ -389,7 +389,7 @@ int http_replace_req_uri(struct htx *htx, const struct ist 
uri)
                goto fail;
 
        sl = http_get_stline(htx);
-       ALREADY_CHECKED(sl); /* the stline exists because http_replace_stline() 
succeded */
+       ALREADY_CHECKED(sl); /* the stline exists because http_replace_stline() 
succeeded */
 
        sl->flags &= ~HTX_SL_F_NORMALIZED_URI;
        if (!http_update_host(htx, sl, uri))
diff --git a/src/resolvers.c b/src/resolvers.c
index 456b121b4..6696e51a3 100644
--- a/src/resolvers.c
+++ b/src/resolvers.c
@@ -462,7 +462,7 @@ void resolv_trigger_resolution(struct resolv_requester *req)
        if (resolvers->t && (res->status != RSLV_STATUS_VALID ||
            !tick_isset(res->last_resolution) || tick_is_expired(exp, now_ms))) 
{
                /* If the resolution is not running and the requester is a
-                * server, reset the resoltion timer to force a quick
+                * server, reset the resolution timer to force a quick
                 * resolution.
                 */
                if (res->step == RSLV_STEP_NONE &&
-- 
2.35.3.windows.1

Reply via email to