]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: assorted typo fixes in the code and comments
authorIlya Shipitsin <chipitsine@gmail.com>
Sat, 12 Jun 2021 10:55:27 +0000 (15:55 +0500)
committerWilly Tarreau <w@1wt.eu>
Thu, 17 Jun 2021 07:02:16 +0000 (09:02 +0200)
This is 24th iteration of typo fixes

src/backend.c
src/cfgparse.c
src/h1_htx.c

index 6494912af63685e0a2c55d1aaa01a416d5d48c39..35cf72787c9c55730bffc43ae6642b79b82c30dd 100644 (file)
@@ -2253,7 +2253,7 @@ void back_handle_st_cer(struct stream *s)
         * redispatch). Thus we must release the SI endpoint on the server side
         * an close the attached connection. It is especially important to do it
         * now if the retry is not immediately performed, to be sure to release
-        * ressources as soon as possible and to not catch errors from the lower
+        * resources as soon as possible and to not catch errors from the lower
         * layers in an unexpected state (i.e < ST_CONN).
         *
         * Note: the stream-interface will be switched to ST_REQ, ST_ASS or
index da4321a597c2daa07296941f3eadddc1fcbd0e75..4fa5bcc59bcbabe9b5ffdef5ab5b75fb118f41ff 100644 (file)
@@ -2155,7 +2155,7 @@ next_line:
                        }
                        else if (strcmp(args[0], ".else") == 0) {
                                if (*args[1]) {
-                                       ha_alert("parsing [%s:%d]: Unxpected argument '%s' for '%s'.\n",
+                                       ha_alert("parsing [%s:%d]: Unexpected argument '%s' for '%s'.\n",
                                                 file, linenum, args[1], args[0]);
                                        err_code |= ERR_ALERT | ERR_FATAL | ERR_ABORT;
                                        break;
@@ -2187,7 +2187,7 @@ next_line:
                        }
                        else if (strcmp(args[0], ".endif") == 0) {
                                if (*args[1]) {
-                                       ha_alert("parsing [%s:%d]: Unxpected argument '%s' for '%s'.\n",
+                                       ha_alert("parsing [%s:%d]: Unexpected argument '%s' for '%s'.\n",
                                                 file, linenum, args[1], args[0]);
                                        err_code |= ERR_ALERT | ERR_FATAL | ERR_ABORT;
                                        break;
index 878c45db8a8fb2cd21fe05d6edd9fb3f2d4f8660..6ff69d0aa668b76d780c0e47e671ef0b7601ec58 100644 (file)
@@ -463,7 +463,7 @@ static const char hextable[] = {
 };
 
 /* Generic function to parse the current HTTP chunk. It may be used to parsed
- * any kind of chunks, including incomplete HTTP chunks or splitted chunks
+ * any kind of chunks, including incomplete HTTP chunks or split chunks
  * because the buffer wraps. This version tries to performed zero-copy on large
  * chunks if possible.
  */
@@ -547,7 +547,7 @@ static size_t h1_parse_chunk(struct h1m *h1m, struct htx **dsthtx,
 
 /* Parses full contiguous HTTP chunks. This version is optimized for small
  * chunks and does not performed zero-copy. It must be called in
- * H1_MSG_CHUNK_SIZE state. Be carefull if you change something in this
+ * H1_MSG_CHUNK_SIZE state. Be careful if you change something in this
  * function. It is really sensitive, any change may have an impact on
  * performance.
  */
@@ -689,7 +689,7 @@ static size_t h1_parse_full_contig_chunks(struct h1m *h1m, struct htx **dsthtx,
                }
 
                /* Now check if the whole chunk is here (including the CRLF at
-                * the end), otherise we switch in H1_MSG_DATA stae.
+                * the end), otherwise we switch in H1_MSG_DATA state.
                 */
                if (chksz + 2 > -ridx) {
                        h1m->curr_len = chksz;
@@ -769,7 +769,7 @@ static size_t h1_parse_msg_chunks(struct h1m *h1m, struct htx **dsthtx,
                }
 
                /* If some data remains, try to parse it using the generic
-                * function handling incomplete chunks and splitted chunks
+                * function handling incomplete chunks and split chunks
                 * because of a wrapping buffer.
                 */
                if (h1m->state < H1_MSG_TRAILERS && ofs < b_data(srcbuf)) {