]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: assorted typo fixes in the code and comments
authorIlia Shipitsin <chipitsine@gmail.com>
Tue, 30 Apr 2024 14:11:27 +0000 (16:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 3 May 2024 07:01:36 +0000 (09:01 +0200)
This is 42nd iteration of typo fixes

doc/configuration.txt
doc/management.txt
include/haproxy/peers-t.h
include/haproxy/stats-file.h
include/haproxy/stats-t.h
reg-tests/ssl/ocsp_auto_update.vtc
src/haproxy.c
src/peers.c
src/quic_tx.c
src/stats-file.c
src/stats.c

index 461ba261f33e41eded2fbda98341acc549f02d6c..10b8cce973b65e1fb37acbef5abdfc1b69dd825e 100644 (file)
@@ -4754,7 +4754,7 @@ httpclient.timeout.connect <timeout>
 3.12. Certificate Storage
 -------------------------
 
-HAProxy uses an internal storage mecanism to load and store certificates used
+HAProxy uses an internal storage mechanism to load and store certificates used
 in the configuration. This storage can be configured by using a "crt-store"
 section. It allows to configure certificate definitions and which files should
 be loaded in it. A certificate definition must be written before it is used
@@ -25767,7 +25767,7 @@ Flags are :
           as-is and '+E' option will be ignored.
           When combined with '+bin' option, it will directly generate raw
           binary CBOR payload. Be careful, because it will obviously generate
-          non-printable chars, thus it is mainly intented for use with
+          non-printable chars, thus it is mainly intended for use with
           set-var-fmt, rings and binary-capable log endpoints.
 
   Example:
index 7f2de3d71bfd6479dfcfd66c6f3e33453de7e72a..1b336a4c1005cccdcd44e46625860ca3755307a9 100644 (file)
@@ -4251,7 +4251,7 @@ show startup-logs
 
 A so-called stats-file can be used to preload internal haproxy counters on
 process startup with non-null values. Its main purpose is to preserve
-statistics for worker processes accross reloads. Only an excerpt of all the
+statistics for worker processes across reloads. Only an excerpt of all the
 exposed haproxy statistics is present in a stats-file as it only makes sense to
 preload metric-type values.
 
@@ -4263,7 +4263,7 @@ even if other parameters differ.
 
 The CLI command "dump stats-file" purpose is to generate a stats-file. Format
 of the stats-file is internally defined and freely subject to future changes
-and extension. It is designed to be compatible at least accross adjacent
+and extension. It is designed to be compatible at least across adjacent
 haproxy stable branch releases, but may require optional extra configuration
 when loading a stats-file to a process running on an older version.
 
index 85206ebeecb0b94868d7791ca481e929fd990809..19619d0a1ae8a90ccc167e23085519dc52e3de2c 100644 (file)
@@ -56,7 +56,7 @@ enum peer_learn_state {
 #define PEERS_F_RESYNC_LOCAL_FINISHED     0x00000001 /* Learn from local peer finished or no more needed */
 #define PEERS_F_RESYNC_REMOTE_FINISHED    0x00000002 /* Learn from remote peer finished or no more needed */
 #define PEERS_F_RESYNC_ASSIGN             0x00000004 /* A peer was assigned to learn our lesson */
-/* unsued 0x00000008..0x00080000 */
+/* unused 0x00000008..0x00080000 */
 #define PEERS_F_DBG_RESYNC_LOCALTIMEOUT   0x00100000 /* Timeout waiting for a full resync from a local node was experienced at lest once (for debugging purpose) */
 #define PEERS_F_DBG_RESYNC_REMOTETIMEOUT  0x00200000 /* Timeout waiting for a full resync from a remote node was experienced at lest once (for debugging purpose) */
 #define PEERS_F_DBG_RESYNC_LOCALABORT     0x00400000 /* Session aborted learning from a local node was experienced at lest once (for debugging purpose) */
index 25454d5a2f7c6562017da5518603212a96e2c899..d3853b4aa3d80d5cbe7bd717a9bd295e5a4fa5d2 100644 (file)
@@ -14,7 +14,7 @@ int stats_dump_fields_file(struct buffer *out,
 
 void stats_dump_file_header(int type, struct buffer *out);
 
-/* Maximun number of parsed stat column in a header line.
+/* Maximum number of parsed stat column in a header line.
  * Directly based on ST_I_PX_MAX, with value doubled to obtain compatibility
  * between haproxy adjacent versions.
  */
index 204401a84d66215679be01d4b72eac14915ecfb8..d4d01e97009eaf8307b0370e1023af25968ee2b6 100644 (file)
@@ -551,7 +551,7 @@ enum stats_domain_px_cap {
        STATS_PX_CAP_MASK = 0xff
 };
 
-/* Shorcut names for enum stats_domain_px_cap only for declaration convenience */
+/* Shortcut names for enum stats_domain_px_cap only for declaration convenience */
 #define STATS_PX_CAP_LFBS (STATS_PX_CAP_MASK)
 #define STATS_PX_CAP_LFB_ (STATS_PX_CAP_FE|STATS_PX_CAP_BE|STATS_PX_CAP_LI)
 #define STATS_PX_CAP_LF__ (STATS_PX_CAP_FE|STATS_PX_CAP_LI)
index 72d20fe60cc8da1797ecd71f4a708e174d2af1b7..214c63e692f4cd658c392ca58550d6f2499a1a21 100644 (file)
@@ -16,7 +16,7 @@
 #
 # The ocsp responder used in all the tests will be an openssl using the
 # certificate database in ocsp_update/index.txt. It will listen on port 12345
-# which was specified explicitely in the certificates used in the tests.
+# which was specified explicitly in the certificates used in the tests.
 # The synchronization will be based on the logs emitted by the OCSP update task
 # directly. When this log is created, we will know that the update was
 # effective and the updated OCSP response is loaded in the tree. So any
index 8cc897e758f34400a310853a4b621038ea63e692..fb85cf44274c8002d5da9da2cdd7e6a30cc0ab53 100644 (file)
@@ -769,7 +769,7 @@ static void mworker_reexec(int hardreload)
        /* copy the program name */
        next_argv[next_argc++] = old_argv[0];
 
-       /* we need to reintroduce /dev/null everytime */
+       /* we need to reintroduce /dev/null every time */
        if (old_unixsocket && strcmp(old_unixsocket, "/dev/null") == 0)
                x_off = 1;
 
index a7d03d42d31c1c7b319ac859a4471a4ef7a50147..4ec981cad9cb4a16e354ff3aefe6b3a8d47239e6 100644 (file)
@@ -3291,7 +3291,7 @@ static void sync_peer_learn_state(struct peers *peers, struct peer *peer)
        if (peer->learnstate != PEER_LR_ST_FINISHED)
                return;
 
-       /* The learning process is now fnished */
+       /* The learning process is now finished */
        if (peer->flags & PEER_F_LEARN_NOTUP2DATE) {
                /* Partial resync */
                flags |= (peer->local ? PEERS_F_DBG_RESYNC_LOCALPARTIAL : PEERS_F_DBG_RESYNC_REMOTEPARTIAL);
index ba81a7713356f8841b616646153785136d412c26..d50b52f707e0637707b87fd76ac3d2ad25fea208 100644 (file)
@@ -685,7 +685,7 @@ static int qc_prep_pkts(struct quic_conn *qc, struct buffer *buf,
  * specified via quic_enc_level <send_list> through their send_frms member. Set
  * <old_data> when reemitted duplicated data.
  *
-* Returns 1 on success else 0. Note that <send_list> will always be resetted
+* Returns 1 on success else 0. Note that <send_list> will always be reset
 * after qc_send() exit.
  */
 int qc_send(struct quic_conn *qc, int old_data, struct list *send_list)
index c63916ea01ee48e852134f7e4e2268ac1efa9a49..76168919dbb82cde73225403a4e37ff31bdf1ee3 100644 (file)
@@ -114,7 +114,7 @@ void stats_dump_file_header(int type, struct buffer *out)
  * using <st_tree> as prefilled proxy stats columns. If stats-file section is
  * unknown, only <domain> will be set to STFILE_DOMAIN_UNSET.
  *
- * Returns 0 on sucess. On fatal error, non-zero is returned and parsing shoud
+ * Returns 0 on success. On fatal error, non-zero is returned and parsing should
  * be interrupted.
  */
 static int parse_header_line(struct ist header, struct eb_root *st_tree,
index 2baffc5863f1d2df7f595a12d495161a700556c2..5db9c26319a0e5965f687b8fddacecabcce2221f 100644 (file)
@@ -1026,7 +1026,7 @@ static int cli_io_handler_dump_stat_file(struct appctx *appctx)
        struct show_stat_ctx *ctx = appctx->svcctx;
        int ret;
 
-       /* Frontend and backend sides are ouputted separatedly on stats-file.
+       /* Frontend and backend sides are outputted separately on stats-file.
         * As such, use STAT_F_BOUND to restrict proxies looping over frontend
         * side first before first stats_dump_stat_to_buffer(). A second
         * iteration is conducted for backend side after.