]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: fix a few typos in the comments of the server subsystem
authorJoseph Herlant <aerostitch@debian.org>
Thu, 15 Nov 2018 16:57:51 +0000 (08:57 -0800)
committerWilly Tarreau <w@1wt.eu>
Sun, 18 Nov 2018 21:23:15 +0000 (22:23 +0100)
A few misspells where detected in the server subsystem. This commit
fixes them.

include/types/server.h
src/server.c

index a2e11c30e1c3fb8c1f5d228c9710b5146e3c13b6..9586fb8c8fc2dbe13b3c75ec7c21bd34e77e7a63 100644 (file)
@@ -272,7 +272,7 @@ 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 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 @@ struct server {
                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
index 5a539ef9d8f49caea88b9d9742a39fab8b947b0a..9c5f4e90670e75625f4b9017059e3519413d4c4c 100644 (file)
@@ -1921,7 +1921,7 @@ static inline void srv_set_id_from_prefix(struct server *srv, const char *prefix
  * 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 @@ int parse_server(const char *file, int linenum, char **args, struct proxy *curpr
                                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 @@ static void srv_update_state(struct server *srv, int version, char **params)
                                         * - 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;
                                }