]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: Fix spelling errors in comments
authorThayne McCombs <thayne@lucidchart.com>
Fri, 8 Jan 2021 04:35:52 +0000 (21:35 -0700)
committerWilly Tarreau <w@1wt.eu>
Fri, 8 Jan 2021 13:56:32 +0000 (14:56 +0100)
This is from the output of codespell. It's done at once over a bunch
of files and only affects comments, so there is nothing user-visible.
No backport needed.

17 files changed:
Makefile
include/haproxy/action-t.h
include/haproxy/connection-t.h
include/haproxy/listener.h
include/haproxy/proxy-t.h
include/haproxy/server-t.h
include/import/ebmbtree.h
src/backend.c
src/fd.c
src/haproxy.c
src/hlua.c
src/http.c
src/http_act.c
src/htx.c
src/pattern.c
src/proxy.c
src/stream_interface.c

index 1e383f464758b4ace52b541af2c6ced15f6fc6cf..27d56451cdd7ac80bf1cae7edd4747770d5fad84 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,7 @@
 #   USE_TPROXY           : enable transparent proxy. Automatic.
 #   USE_LINUX_TPROXY     : enable full transparent proxy. Automatic.
 #   USE_LINUX_SPLICE     : enable kernel 2.6 splicing. Automatic.
-#   USE_LIBCRYPT         : enable crypted passwords using -lcrypt
+#   USE_LIBCRYPT         : enable encrypted passwords using -lcrypt
 #   USE_CRYPT_H          : set it if your system requires including crypt.h
 #   USE_GETADDRINFO      : use getaddrinfo() to resolve IPv6 host names.
 #   USE_OPENSSL          : enable use of OpenSSL. Recommended, but see below.
@@ -435,7 +435,7 @@ endif
 ifeq ($(TARGET),cygwin)
   set_target_defaults = $(call default_opts, \
     USE_POLL USE_TPROXY USE_OBSOLETE_LINKER)
-  # Cygwin adds IPv6 support only in version 1.7 (in beta right now). 
+  # Cygwin adds IPv6 support only in version 1.7 (in beta right now).
   TARGET_CFLAGS  = $(if $(filter 1.5.%, $(shell uname -r)), -DUSE_IPV6 -DAF_INET6=23 -DINET6_ADDRSTRLEN=46, )
 endif
 
index 2ea524db29370afbc9fbff3f4204a837b87323b2..045bfd384b0095886e852fb6ee42fc7d9097ebd9 100644 (file)
@@ -66,9 +66,9 @@ enum act_flag {
 
 
 /* known actions to be used without any action function pointer. This enum is
- * typically used in a switch case, iff .action_ptr is undefined. So if an
- * action function is defined for one of following action types, the function
- * have the priority over the switch.
+ * typically used in a switch case, if and only if .action_ptr is undefined. So
+ * if an action function is defined for one of following action types, the
+ * function have the priority over the switch.
  */
 enum act_name {
        ACT_CUSTOM = 0,
index 0a3af4418a422d15e653a7b2b68277cdcc2165e6..91048d52880f40b2c331a230e8aeb5441839a7f8 100644 (file)
@@ -194,8 +194,8 @@ enum {
 enum {
        CO_ER_NONE,             /* no error */
 
-       CO_ER_CONF_FDLIM,       /* reached process' configured FD limitation */
-       CO_ER_PROC_FDLIM,       /* reached process' FD limitation */
+       CO_ER_CONF_FDLIM,       /* reached process's configured FD limitation */
+       CO_ER_PROC_FDLIM,       /* reached process's FD limitation */
        CO_ER_SYS_FDLIM,        /* reached system's FD limitation */
        CO_ER_SYS_MEMLIM,       /* reached system buffers limitation */
        CO_ER_NOPROTO,          /* protocol not supported */
index 8200395db1dfa8ceade28a7799129c40e1537c29..44213630f6eed391fe70ee6f06646c9b58a04580 100644 (file)
@@ -74,7 +74,7 @@ void dequeue_proxy_listeners(struct proxy *px);
 /* This function closes the listening socket for the specified listener,
  * provided that it's already in a listening state. The listener enters the
  * LI_ASSIGNED state, except if the FD is not closed, in which case it may
- * remain in LI_LISTEN. Depending on the process' status (master or worker),
+ * remain in LI_LISTEN. Depending on the process's status (master or worker),
  * the listener's bind options and the receiver's origin, it may or may not
  * close the receiver's FD. Must be called with the lock held.
  */
index e62b7976549f64fc0866eb9d3fa40eaf327f0536..bafe9402df0f4cc704954490ddd1193e8db95841 100644 (file)
@@ -137,7 +137,7 @@ enum PR_SRV_STATE_FILE {
 
 #define PR_O2_SRC_ADDR 0x00100000      /* get the source ip and port for logs */
 
-#define PR_O2_FAKE_KA   0x00200000      /* pretend we do keep-alive with server eventhough we close */
+#define PR_O2_FAKE_KA   0x00200000      /* pretend we do keep-alive with server even though we close */
 /* unused : 0x00400000..0x80000000 */
 
 /* server health checks */
index 3107e048259967cc23439708b6e3fab6c6905b35..68463c57c3c8c123316b8de89048a018865880c6 100644 (file)
@@ -262,7 +262,7 @@ struct server {
        unsigned iweight,uweight, cur_eweight;  /* initial weight, user-specified weight, and effective weight */
        unsigned wscore;                        /* weight score, used during srv map computation */
        unsigned next_eweight;                  /* next pending eweight to commit */
-       unsigned rweight;                       /* remainer of weight in the current LB tree */
+       unsigned rweight;                       /* remainder of weight in the current LB tree */
        unsigned cumulative_weight;             /* weight of servers prior to this one in the same group, for chash balancing */
        unsigned npos, lpos;                    /* next and last positions in the LB tree */
        struct eb32_node lb_node;               /* node used for tree-based load balancing */
index a01062494a1e4dae9818f86f9de015b7499f47e2..23ef5541fddc8cd2c4e1c8e038049d76d6316ac2 100644 (file)
@@ -465,7 +465,7 @@ static forceinline struct ebmb_node *__ebmb_lookup_longest(struct eb_root *root,
        }
 
  not_found:
-       /* Walk down last cover tre if it exists. It does not matter if cover is NULL */
+       /* Walk down last cover tree if it exists. It does not matter if cover is NULL */
        return ebmb_entry(eb_walk_down(cover, EB_LEFT), struct ebmb_node, node);
 }
 
index 2f2808a810c83e085412e020621870ba096714f9..e3170ee9b48d030b03a0af68838a84730b4f74d5 100644 (file)
@@ -2193,7 +2193,7 @@ void back_handle_st_rdy(struct stream *s)
        DBG_TRACE_ENTER(STRM_EV_STRM_PROC|STRM_EV_SI_ST, s);
        /* We know the connection at least succeeded, though it could have
         * since met an error for any other reason. At least it didn't time out
-        * eventhough the timeout might have been reported right after success.
+        * even though the timeout might have been reported right after success.
         * We need to take care of various situations here :
         *   - everything might be OK. We have to switch to established.
         *   - an I/O error might have been reported after a successful transfer,
index ccdefc67690047fcc08786bed433879d3570f5a7..6d850e725ddb68eea137b0a12a88de23429235ba 100644 (file)
--- a/src/fd.c
+++ b/src/fd.c
@@ -62,7 +62,7 @@
  *     |    +----------+
  *     |       |  ^
  *     |  may  |  |
- *     |       v  | EAGAIN (cant)
+ *     |       v  | EAGAIN (can't)
  *     |     +--------+
  *     |     | READY  |     (READY=1, ACTIVE=1)
  *     |     +--------+
index a28b45fb90bcba6fe1bc63130bbea90829c0219e..fb73c54440736af3172a41b0c04d17f691121108 100644 (file)
@@ -1469,7 +1469,7 @@ static int compute_ideal_maxsock(int maxconn)
        return maxsock;
 }
 
-/* Tests if it is possible to set the current process' RLIMIT_NOFILE to
+/* Tests if it is possible to set the current process's RLIMIT_NOFILE to
  * <maxsock>, then sets it back to the previous value. Returns non-zero if the
  * value is accepted, non-zero otherwise. This is used to determine if an
  * automatic limit may be applied or not. When it is not, the caller knows that
index 8ad9e9f4a3460321a01cc4c25e00eb119fae2790..1893511f4a599cdd4b3fcfcf619d5451e14b8d04 100644 (file)
@@ -3902,7 +3902,7 @@ __LJMP static int hlua_applet_tcp_getline_yield(lua_State *L, int status, lua_KC
        if (ret == 1)
                len2 = 0;
 
-       /* dont check the max length read and dont check. */
+       /* don't check the max length read and don't check. */
        luaL_addlstring(&appctx->b, blk1, len1);
        luaL_addlstring(&appctx->b, blk2, len2);
 
@@ -4666,7 +4666,7 @@ __LJMP static int hlua_applet_http_addheader(lua_State *L)
                WILL_LJMP(lua_error(L));
        }
 
-       /* Now the top od thestack is an array of values. We push
+       /* Now the top of thestack is an array of values. We push
         * the header value as new entry.
         */
        lua_pushvalue(L, 3);
@@ -4838,7 +4838,7 @@ __LJMP static int hlua_applet_http_send_response(lua_State *L)
        }
        sl->flags |= flags;
 
-       /* If we dont have a content-length set, and the HTTP version is 1.1
+       /* If we don't have a content-length set, and the HTTP version is 1.1
         * and the status code implies the presence of a message body, we must
         * announce a transfer encoding chunked. This is required by haproxy
         * for the keepalive compliance. If the applet announces a transfer-encoding
@@ -6110,7 +6110,7 @@ __LJMP static int hlua_txn_reply_add_header(lua_State *L)
                WILL_LJMP(lua_error(L));
        }
 
-       /* Now the top od thestack is an array of values. We push
+       /* Now the top of thestack is an array of values. We push
         * the header value as new entry.
         */
        lua_pushstring(L, value);
@@ -7699,7 +7699,7 @@ __LJMP static int hlua_register_action(lua_State *L)
                        WILL_LJMP(luaL_error(L, "Lua out of memory error."));
                fcn->function_ref[hlua_state_id] = ref;
 
-               /* Set the expected number od arguments. */
+               /* Set the expected number of arguments. */
                fcn->nargs = nargs;
 
                /* List head */
@@ -8480,7 +8480,7 @@ int hlua_post_init_state(lua_State *L)
 
                case LUA_ERRERR:
                        kind = "message handler error";
-                       /* Fall thru */
+                       /* Fall through */
                case LUA_ERRRUN:
                        if (!kind)
                                kind = "runtime error";
@@ -8498,12 +8498,12 @@ int hlua_post_init_state(lua_State *L)
                default:
                        /* Unknown error */
                        kind = "Unknown error";
-                       /* Fall thru */
+                       /* Fall through */
                case LUA_YIELD:
                        /* yield is not configured at this step, this state doesn't happen */
                        if (!kind)
                                kind = "yield not allowed";
-                       /* Fall thru */
+                       /* Fall through */
                case LUA_ERRMEM:
                        if (!kind)
                                kind = "out of memory error";
index d331699568747a521ce180727bc4bf2fc4115da7..8e38b0c629ced63725bf2e66bba5dcb60c8fdccf 100644 (file)
@@ -818,7 +818,7 @@ const char *http_find_url_param_pos(const char **chunks,
                                 * comparison is performed in two parts.
                                 */
 
-                               /* This is the end, we dont have any other chunk. */
+                               /* This is the end, we don't have any other chunk. */
                                if (bufs != chunks || !bufs[2])
                                        return NULL;
 
index 9a49368782f3867c92fb8a0bcd6ec89086922db9..dee738b63f52260e61082e197010c9a2041ecca1 100644 (file)
@@ -754,7 +754,7 @@ static int check_http_res_capture(struct act_rule *rule, struct proxy *px, char
 
 /* parse an "http-response capture" action. It takes a single argument which is
  * a sample fetch expression. It stores the expression into arg->act.p[0] and
- * the allocated hdr_cap struct od the preallocated id into arg->act.p[1].
+ * the allocated hdr_cap struct of the preallocated id into arg->act.p[1].
  * It returns ACT_RET_PRS_OK on success, ACT_RET_PRS_ERR on error.
  */
 static enum act_parse_ret parse_http_res_capture(const char **args, int *orig_arg, struct proxy *px,
index 91acee54f03d96893ea92aff6dc957b3d9e5f53e..3370cd34e4c1279c18836b9f88198583818fc11c 100644 (file)
--- a/src/htx.c
+++ b/src/htx.c
@@ -147,14 +147,14 @@ static struct htx_blk *htx_reserve_nxblk(struct htx *htx, uint32_t blksz)
        else
                goto defrag;
 
-       /* Now, we have found the block's position. Try do find where to put its
+       /* Now, we have found the block's position. Try to find where to put its
         * payload. The free space is split in two areas:
         *
-        *   * The free space in front of the blocks table. This one is used iff
-        *     the other one was not used yet.
+        *   * The free space in front of the blocks table. This one is used if and
+        *     only if the other one was not used yet.
         *
         *   * The free space at the beginning of the message. Once this one is
-         *     used, the other one is never used again, until the next defrag.
+        *     used, the other one is never used again, until the next defrag.
         */
        headroom = (htx->end_addr - htx->head_addr);
        tailroom = (!htx->head_addr ? htx_pos_to_addr(htx, tail) - htx->tail_addr : 0);
index 7c260f3d020a0c4725a64837215d18f95aa948c9..0b3bea27df9925523a9b159380cae3f6075d33b3 100644 (file)
@@ -997,7 +997,7 @@ struct pattern *pat_match_ip(struct sample *smp, struct pattern_expr *expr, int
                        return &static_pattern;
                }
 
-               /* The IPv4 sample dont match the IPv4 tree. Convert the IPv4
+               /* The IPv4 sample don't match the IPv4 tree. Convert the IPv4
                 * sample address to IPv6 with the mapping method using the ::ffff:
                 * prefix, and try to lookup in the IPv6 tree.
                 */
@@ -2560,7 +2560,7 @@ int pattern_read_from_file(struct pattern_head *head, unsigned int refflags,
 }
 
 /* This function executes a pattern match on a sample. It applies pattern <expr>
- * to sample <smp>. The function returns NULL if the sample dont match. It returns
+ * to sample <smp>. The function returns NULL if the sample don't match. It returns
  * non-null if the sample match. If <fill> is true and the sample match, the
  * function returns the matched pattern. In many cases, this pattern can be a
  * static buffer.
index a47c2f67e3bf9e8d9136fffd69b1b2ded6e57598..8b2cf4f14d33afd24c934fc4f46b2d25097ccbaa 100644 (file)
@@ -421,7 +421,7 @@ static int proxy_parse_declare(char **args, int section, struct proxy *curpx,
                return -1;
        }
 
-       /* Capture keywork is only available in frontend. */
+       /* Capture keyword is only available in frontend. */
        if (!(curpx->cap & PR_CAP_FE)) {
                memprintf(err, "'%s' only available in frontend or listen section", args[0]);
                return -1;
index 80dacc07c71fd4de0c320bd3e61fae3be62b12e1..2fc56b8e6517fddd1a350117799e642d5d43b918 100644 (file)
@@ -295,7 +295,7 @@ static void stream_int_chk_snd(struct stream_interface *si)
 }
 
 /* Register an applet to handle a stream_interface as a new appctx. The SI will
- * wake it up everytime it is solicited. The appctx must be deleted by the task
+ * wake it up every time it is solicited. The appctx must be deleted by the task
  * handler using si_release_endpoint(), possibly from within the function itself.
  * It also pre-initializes the applet's context and returns it (or NULL in case
  * it could not be allocated).
@@ -831,7 +831,7 @@ void si_update_rx(struct stream_interface *si)
        }
        else {
                /* (re)start reading and update timeout. Note: we don't recompute the timeout
-                * everytime we get here, otherwise it would risk never to expire. We only
+                * every time we get here, otherwise it would risk never to expire. We only
                 * update it if is was not yet set. The stream socket handler will already
                 * have updated it if there has been a completed I/O.
                 */
@@ -874,7 +874,7 @@ void si_update_tx(struct stream_interface *si)
        }
 
        /* (re)start writing and update timeout. Note: we don't recompute the timeout
-        * everytime we get here, otherwise it would risk never to expire. We only
+        * every time we get here, otherwise it would risk never to expire. We only
         * update it if is was not yet set. The stream socket handler will already
         * have updated it if there has been a completed I/O.
         */