summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-04-19 08:15:23 -0400
committerDonald Sharp <sharpd@nvidia.com>2022-04-19 08:15:23 -0400
commit8afb9d8a70343b128cbed98a687418bd4c6e8738 (patch)
treeb626ecea6fc638233d87de82c8f82126f7aa3e00
parentbd4f51b10f8076bf07b3b75a64c1d34ebc69d9b9 (diff)
*: Fix spelling of seperator
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
-rw-r--r--bgpd/bgp_aspath.c18
-rw-r--r--lib/route_types.txt2
2 files changed, 10 insertions, 10 deletions
diff --git a/bgpd/bgp_aspath.c b/bgpd/bgp_aspath.c
index dd27c9f6a1..fd644ebf0a 100644
--- a/bgpd/bgp_aspath.c
+++ b/bgpd/bgp_aspath.c
@@ -544,7 +544,7 @@ static void aspath_make_str_count(struct aspath *as, bool make_json)
seg = as->segments;
-/* ASN takes 5 to 10 chars plus seperator, see below.
+/* ASN takes 5 to 10 chars plus separator, see below.
* If there is one differing segment type, we need an additional
* 2 chars for segment delimiters, and the final '\0'.
* Hopefully this is large enough to avoid hitting the realloc
@@ -560,17 +560,17 @@ static void aspath_make_str_count(struct aspath *as, bool make_json)
while (seg) {
int i;
- char seperator;
+ char separator;
- /* Check AS type validity. Set seperator for segment */
+ /* Check AS type validity. Set separator for segment */
switch (seg->type) {
case AS_SET:
case AS_CONFED_SET:
- seperator = ',';
+ separator = ',';
break;
case AS_SEQUENCE:
case AS_CONFED_SEQUENCE:
- seperator = ' ';
+ separator = ' ';
break;
default:
XFREE(MTYPE_AS_STR, str_buf);
@@ -584,7 +584,7 @@ static void aspath_make_str_count(struct aspath *as, bool make_json)
/* We might need to increase str_buf, particularly if path has
* differing segments types, our initial guesstimate above will
- * have been wrong. Need 10 chars for ASN, a seperator each and
+ * have been wrong. Need 10 chars for ASN, a separator each and
* potentially two segment delimiters, plus a space between each
* segment and trailing zero.
*
@@ -607,7 +607,7 @@ static void aspath_make_str_count(struct aspath *as, bool make_json)
if (make_json)
jseg_list = json_object_new_array();
- /* write out the ASNs, with their seperators, bar the last one*/
+ /* write out the ASNs, with their separators, bar the last one*/
for (i = 0; i < seg->length; i++) {
if (make_json)
json_object_array_add(
@@ -619,7 +619,7 @@ static void aspath_make_str_count(struct aspath *as, bool make_json)
if (i < (seg->length - 1))
len += snprintf(str_buf + len, str_size - len,
- "%c", seperator);
+ "%c", separator);
}
if (make_json) {
@@ -1917,7 +1917,7 @@ static const char *aspath_gettoken(const char *buf, enum as_token *token,
{
const char *p = buf;
- /* Skip seperators (space for sequences, ',' for sets). */
+ /* Skip separators (space for sequences, ',' for sets). */
while (isspace((unsigned char)*p) || *p == ',')
p++;
diff --git a/lib/route_types.txt b/lib/route_types.txt
index 77639070c9..a82273a6dc 100644
--- a/lib/route_types.txt
+++ b/lib/route_types.txt
@@ -3,7 +3,7 @@
# Used to construct route_types.c and route_types.h
#
# comma-seperated fields of either 2 fields (help strings) or 7 fields.
-# White space before and after the comma seperators is stripped.
+# White space before and after the comma separators is stripped.
# Lines /beginning/ with # are comments.
#
####