CLEANUP: fix a few typos in the comments of the server subsystem
A few misspells where detected in the server subsystem. This commit
fixes them.
diff --git a/include/types/server.h b/include/types/server.h
index a2e11c3..9586fb8 100644
--- a/include/types/server.h
+++ b/include/types/server.h
@@ -272,7 +272,7 @@
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 lenght of the server hostname in Domain Name format */
+ int hostname_dn_len; /* sting 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 */
@@ -322,7 +322,7 @@
short status, code;
char reason[128];
} op_st_chg; /* operational status change's reason */
- char adm_st_chg_cause[48]; /* adminstrative status change's cause */
+ char adm_st_chg_cause[48]; /* administrative status change's cause */
};
/* Descriptor for a "server" keyword. The ->parse() function returns 0 in case of
diff --git a/src/server.c b/src/server.c
index 5a539ef..9c5f4e9 100644
--- a/src/server.c
+++ b/src/server.c
@@ -1921,7 +1921,7 @@
* Note that a server template is a special server with
* a few different parameters than a server which has
* been parsed mostly the same way as a server.
- * Returns the number of servers succesfully allocated,
+ * Returns the number of servers successfully allocated,
* 'srv' template included.
*/
static int server_template_init(struct server *srv, struct proxy *px)
@@ -2303,7 +2303,7 @@
p = args[cur_arg + 1];
e = p;
while (*p != '\0') {
- /* If no room avalaible, return error. */
+ /* If no room available, return error. */
if (opt->pref_net_nb >= SRV_MAX_PREF_NET) {
ha_alert("parsing [%s:%d]: '%s' exceed %d networks.\n",
file, linenum, args[cur_arg], SRV_MAX_PREF_NET);
@@ -3043,7 +3043,7 @@
* - reload for any other reason than a FQDN modification,
* the configuration file FQDN matches the fqdn server state file value.
* So we must reset the 'set from stats socket FQDN' flag to be consistent with
- * any futher FQDN modification.
+ * any further FQDN modification.
*/
srv->next_admin &= ~SRV_ADMF_HMAINT;
}