From: Joseph Herlant Date: Thu, 15 Nov 2018 19:58:28 +0000 (-0800) Subject: CLEANUP: Fix typos in the standard subsystem X-Git-Tag: v1.9-dev7~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=32b83272661f6236b637230708f903c7b4362366;p=thirdparty%2Fhaproxy.git CLEANUP: Fix typos in the standard subsystem Fix typos in the code comments of the standard subsystem. --- diff --git a/include/common/standard.h b/include/common/standard.h index 53d7f9f3b3..a3e8275011 100644 --- a/include/common/standard.h +++ b/include/common/standard.h @@ -365,7 +365,7 @@ extern const char *invalid_prefix_char(const char *name); * IPv6, use ":::port". NULL is returned if the host part cannot be resolved. * If is non-null, it is used as a string prefix before any path-based * address (typically the path to a unix socket). If use_dns is not true, - * the funtion cannot accept the DNS resolution. + * the function cannot accept the DNS resolution. */ struct sockaddr_storage *str2sa_range(const char *str, int *port, int *low, int *high, @@ -1055,10 +1055,10 @@ extern int in_net_ipv4(const void *addr, const struct in_addr *mask, const struc /* Return true if IPv6 address is part of the network */ extern int in_net_ipv6(const void *addr, const struct in6_addr *mask, const struct in6_addr *net); -/* Map IPv4 adress on IPv6 address, as specified in RFC 3513. */ +/* Map IPv4 address on IPv6 address, as specified in RFC 3513. */ extern void v4tov6(struct in6_addr *sin6_addr, struct in_addr *sin_addr); -/* Map IPv6 adress on IPv4 address, as specified in RFC 3513. +/* Map IPv6 address on IPv4 address, as specified in RFC 3513. * Return true if conversion is possible and false otherwise. */ extern int v6tov4(struct in_addr *sin_addr, struct in6_addr *sin6_addr); @@ -1208,7 +1208,7 @@ const char *strnistr(const char *str1, int len_str1, const char *str2, int len_s /* after increasing a pointer value, it can exceed the first buffer * size. This function transform the value of according with * the expected position. is an array of the one or two - * avalaible chunks. The first value is the start of the first chunk, + * available chunks. The first value is the start of the first chunk, * the second value if the end+1 of the first chunks. The third value * is NULL or the start of the second chunk and the fourth value is * the end+1 of the second chunk. The function returns 1 if does a diff --git a/src/standard.c b/src/standard.c index ae1f54eac2..38e0b6fda4 100644 --- a/src/standard.c +++ b/src/standard.c @@ -2103,7 +2103,7 @@ const char *parse_time_err(const char *text, unsigned *ret, unsigned unit_flags) /* this function converts the string starting at to an unsigned int * stored in . If an error is detected, the pointer to the unexpected - * character is returned. If the conversio is succesful, NULL is returned. + * character is returned. If the conversion is successful, NULL is returned. */ const char *parse_size_err(const char *text, unsigned *ret) { unsigned value = 0; @@ -2682,7 +2682,7 @@ const char rfc4291_pfx[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF }; -/* Map IPv4 adress on IPv6 address, as specified in RFC 3513. +/* Map IPv4 address on IPv6 address, as specified in RFC 3513. * Input and output may overlap. */ void v4tov6(struct in6_addr *sin6_addr, struct in_addr *sin_addr) @@ -2694,7 +2694,7 @@ void v4tov6(struct in6_addr *sin6_addr, struct in_addr *sin_addr) memcpy(sin6_addr->s6_addr+12, &tmp_addr.s_addr, 4); } -/* Map IPv6 adress on IPv4 address, as specified in RFC 3513. +/* Map IPv6 address on IPv4 address, as specified in RFC 3513. * Return true if conversion is possible and false otherwise. */ int v6tov4(struct in_addr *sin_addr, struct in6_addr *sin6_addr)