summaryrefslogtreecommitdiff
path: root/lib/if.c
diff options
context:
space:
mode:
authorewlumpkin <ewlumpkin@gmail.com>2021-10-05 21:33:14 +0000
committerewlumpkin <ewlumpkin@gmail.com>2021-10-05 21:42:57 +0000
commit214d8a60e15dc1b086d3f6033f686246317739f1 (patch)
treedb070e001b544ede6a95886d972e4f45a977bad4 /lib/if.c
parentf72b987de1d4897919902b96559c8fd4da58b366 (diff)
lib: fix spelling nits in more lib files
Signed-off-by: ewlumpkin <ewlumpkin@gmail.com>
Diffstat (limited to 'lib/if.c')
-rw-r--r--lib/if.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/if.c b/lib/if.c
index 424880ff42..cbd1b957d9 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -341,7 +341,7 @@ static struct interface *if_lookup_by_ifindex(ifindex_t ifindex,
return RB_FIND(if_index_head, &vrf->ifaces_by_index, &if_tmp);
}
-/* Interface existance check by index. */
+/* Interface existence check by index. */
struct interface *if_lookup_by_index(ifindex_t ifindex, vrf_id_t vrf_id)
{
switch (vrf_get_backend()) {
@@ -354,7 +354,7 @@ struct interface *if_lookup_by_index(ifindex_t ifindex, vrf_id_t vrf_id)
return NULL;
}
-/* Interface existance check by index. */
+/* Interface existence check by index. */
struct interface *if_vrf_lookup_by_index_next(ifindex_t ifindex,
vrf_id_t vrf_id)
{
@@ -406,7 +406,7 @@ ifindex_t ifname2ifindex(const char *name, vrf_id_t vrf_id)
: IFINDEX_INTERNAL;
}
-/* Interface existance check by interface name. */
+/* Interface existence check by interface name. */
struct interface *if_lookup_by_name(const char *name, vrf_id_t vrf_id)
{
struct vrf *vrf = vrf_lookup_by_id(vrf_id);