From ce5002c6595abe375b440555fe94928cce74a0f7 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 19 Apr 2022 08:18:43 -0400 Subject: [PATCH] *: Fix spelling of comparision Signed-off-by: Donald Sharp --- bgpd/bgp_route.c | 8 ++++---- ospfd/ospf_lsa.c | 2 +- tests/lib/test_table.c | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index abf14778d7..ba2768aff1 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -1253,10 +1253,10 @@ static int bgp_path_info_cmp(struct bgp *bgp, struct bgp_path_info *new, } } - /* 13. Router-ID comparision. */ + /* 13. Router-ID comparison. */ /* If one of the paths is "stale", the corresponding peer router-id will * be 0 and would always win over the other path. If originator id is - * used for the comparision, it will decide which path is better. + * used for the comparison, it will decide which path is better. */ if (newattr->flag & ATTR_FLAG_BIT(BGP_ATTR_ORIGINATOR_ID)) new_id.s_addr = newattr->originator_id.s_addr; @@ -1285,7 +1285,7 @@ static int bgp_path_info_cmp(struct bgp *bgp, struct bgp_path_info *new, return 0; } - /* 14. Cluster length comparision. */ + /* 14. Cluster length comparison. */ new_cluster = BGP_CLUSTER_LIST_LENGTH(new->attr); exist_cluster = BGP_CLUSTER_LIST_LENGTH(exist->attr); @@ -1309,7 +1309,7 @@ static int bgp_path_info_cmp(struct bgp *bgp, struct bgp_path_info *new, return 0; } - /* 15. Neighbor address comparision. */ + /* 15. Neighbor address comparison. */ /* Do this only if neither path is "stale" as stale paths do not have * valid peer information (as the connection may or may not be up). */ diff --git a/ospfd/ospf_lsa.c b/ospfd/ospf_lsa.c index 3ad7ca7d1b..de146a1665 100644 --- a/ospfd/ospf_lsa.c +++ b/ospfd/ospf_lsa.c @@ -2858,7 +2858,7 @@ struct ospf_lsa *ospf_lsa_install(struct ospf *ospf, struct ospf_interface *oi, update is needed */ old = ospf_lsdb_lookup(lsdb, lsa); - /* Do comparision and record if recalc needed. */ + /* Do comparison and record if recalc needed. */ rt_recalc = 0; if (old == NULL || ospf_lsa_different(old, lsa, false)) { /* Ref rfc3623 section 3.2.3 diff --git a/tests/lib/test_table.c b/tests/lib/test_table.c index 9b6539e3bc..cef93ad0c5 100644 --- a/tests/lib/test_table.c +++ b/tests/lib/test_table.c @@ -382,7 +382,7 @@ static void verify_prefix_iter_cmp(const char *p1, const char *p2, assert(exp_result == result); /* - * Also check the reverse comparision. + * Also check the reverse comparison. */ result = route_table_prefix_iter_cmp((struct prefix *)&p2_pfx, (struct prefix *)&p1_pfx); @@ -398,7 +398,7 @@ static void verify_prefix_iter_cmp(const char *p1, const char *p2, /* * test_prefix_iter_cmp * - * Tests comparision of prefixes according to order of iteration. + * Tests comparison of prefixes according to order of iteration. */ static void test_prefix_iter_cmp(void) { -- 2.39.5