]> git.puffer.fish Git - matthieu/frr.git/commitdiff
*: Fix spelling of seperator
authorDonald Sharp <sharpd@nvidia.com>
Tue, 19 Apr 2022 12:15:23 +0000 (08:15 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Tue, 19 Apr 2022 12:15:23 +0000 (08:15 -0400)
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_aspath.c
lib/route_types.txt

index dd27c9f6a12ff0683eadceb32861008266d74962..fd644ebf0a6db9556b7dbfaba65471f6e5f6bd53 100644 (file)
@@ -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++;
 
index 77639070c9c83b2e088c0532c1d1f5c1340af574..a82273a6dcb0c322846d8483c3857b58e9b8b1d3 100644 (file)
@@ -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.
 #
 ####