Hello,
I attached yet another typo fixing patch.
Cheers,
Ilya Shipitcin
From e75ba045512aafc62177d48011d74b9026ca36af Mon Sep 17 00:00:00 2001
From: Ilya Shipitsin
Date: Sun, 5 Jul 2020 16:36:08 +0500
Subject: [PATCH] CLEANUP: assorted typo fixes in the code and comments
This is 11th iteration of typo fixes
---
include/haproxy/server-t.h | 4 ++--
src/arg.c | 2 +-
src/dns.c | 4 ++--
src/fcgi-app.c | 2 +-
src/flt_http_comp.c| 2 +-
src/haproxy.c | 8
src/hlua.c | 4 ++--
src/http.c | 10 +-
src/http_ana.c | 2 +-
src/http_conv.c| 2 +-
src/http_fetch.c | 6 +++---
src/htx.c | 2 +-
src/mux_h2.c | 8
src/mux_pt.c | 4 ++--
src/peers.c| 4 ++--
src/proto_tcp.c| 2 +-
src/regex.c| 6 +++---
src/sample.c | 10 +-
src/sink.c | 2 +-
src/ssl_ckch.c | 2 +-
src/time.c | 2 +-
src/tools.c| 4 ++--
src/vars.c | 2 +-
23 files changed, 47 insertions(+), 47 deletions(-)
diff --git a/include/haproxy/server-t.h b/include/haproxy/server-t.h
index 54517b17c..decc5e292 100644
--- a/include/haproxy/server-t.h
+++ b/include/haproxy/server-t.h
@@ -289,12 +289,12 @@ struct server {
struct dns_resolvers *resolvers; /* pointer to the resolvers structure used by this server */
char *lastaddr;/* the address string provided by the server-state file */
struct dns_options dns_opts;
- int hostname_dn_len; /* sting length of the server hostname in Domain Name format */
+ int hostname_dn_len; /* string length of the server hostname in Domain Name format */
char *hostname_dn; /* server hostname in Domain Name format */
char *hostname;/* server hostname */
struct sockaddr_storage init_addr; /* plain IP address specified on the init-addr line */
unsigned int init_addr_methods; /* initial address setting, 3-bit per method, ends at 0, enough to store 10 entries */
- enum srv_log_proto log_proto; /* used proto to emmit messages on server lines from ring section */
+ enum srv_log_proto log_proto; /* used proto to emit messages on server lines from ring section */
#ifdef USE_OPENSSL
char *sni_expr; /* Temporary variable to store a sample expression for SNI */
diff --git a/src/arg.c b/src/arg.c
index 2676ce808..ec7626d00 100644
--- a/src/arg.c
+++ b/src/arg.c
@@ -362,7 +362,7 @@ int make_arg_list(const char *in, int len, uint64_t mask, struct arg **argp,
memprintf(err_msg, "expected ')' before '%s'", word);
if (len > 0)
free(word);
- /* when we're missing a right paren, the empty part preceeding
+ /* when we're missing a right paren, the empty part preceding
* already created an empty arg, adding one to the position, so
* let's fix the reporting to avoid being confusing.
*/
diff --git a/src/dns.c b/src/dns.c
index 6f951ab5a..107bb8bb7 100644
--- a/src/dns.c
+++ b/src/dns.c
@@ -1273,7 +1273,7 @@ int dns_get_ip_from_response(struct dns_response_packet *dns_p,
/* Check for preferred network. */
for (j = 0; j < dns_opts->pref_net_nb; j++) {
- /* Compare only the same adresses class. */
+ /* Compare only the same addresses class. */
if (dns_opts->pref_net[j].family != ip_type)
continue;
@@ -1698,7 +1698,7 @@ int dns_link_resolution(void *requester, int requester_type, int requester_locke
return -1;
}
-/* Removes a requester from a DNS resoltion. It takes takes care of all the
+/* Removes a requester from a DNS resolution. It takes takes care of all the
* consequences. It also cleans up some parameters from the requester.
*/
void dns_unlink_resolution(struct dns_requester *requester)
diff --git a/src/fcgi-app.c b/src/fcgi-app.c
index 212ea2360..d7285bfa6 100644
--- a/src/fcgi-app.c
+++ b/src/fcgi-app.c
@@ -702,7 +702,7 @@ static int cfg_fcgi_apps_postparser()
struct sink *sink = sink_find(logsrv->ring_name);
if (!sink || sink->type != SINK_TYPE_BUFFER) {
- ha_alert("config : fcgi-app '%s' : log server uses unkown ring named '%s'.\n",
+ ha_alert("config : fcgi-app '%s' : log server uses unknown ring named '%s'.\n",
curapp->name, logsrv->ring_name);
err_code |= ERR_ALERT | ERR_FATAL;
}
diff --git a/src/flt_http_comp.c b/src/flt_http_comp.c
index 664124980..87f359d03 100644
--- a/src/flt_http_comp.c
+++ b/src/flt_http_comp.c
@@ -458,7 +458,7 @@ select_compression_request_header(struct comp_state *st, struct stream *s, struc
}
/*
- * Selects a comression algorithm depending of the server response.
+ * Selects a compression algorithm depending of the server response.
*/
static int
select_compression_response_header(struct comp_state *st, struct stream *s, struct http_msg *msg)
diff --git a/src/haproxy.c b/src/haproxy.c
index