]> git.proxmox.com Git - mirror_frr.git/commitdiff
lib: fix spelling nits in more lib files
authorewlumpkin <ewlumpkin@gmail.com>
Tue, 5 Oct 2021 21:33:14 +0000 (21:33 +0000)
committerewlumpkin <ewlumpkin@gmail.com>
Tue, 5 Oct 2021 21:42:57 +0000 (21:42 +0000)
Signed-off-by: ewlumpkin <ewlumpkin@gmail.com>
27 files changed:
lib/atomlist.c
lib/atomlist.h
lib/bfd.c
lib/buffer.c
lib/command.h
lib/command_match.h
lib/command_parse.y
lib/db.c
lib/distribute.h
lib/ferr.h
lib/filter.c
lib/frr_zmq.c
lib/frrscript.c
lib/graph.c
lib/hash.h
lib/hook.h
lib/if.c
lib/if.h
lib/lib_errors.c
lib/libospf.h
lib/netns_linux.c
lib/prefix.c
lib/routemap.c
lib/sbuf.h
lib/sigevent.c
lib/skiplist.c
lib/skiplist.h

index 8169ba9eb45376bdc2b2a1e4bc43dad822b465b6..3668b083d0596b77f8f6f4fcef60511d3f424451 100644 (file)
@@ -121,7 +121,7 @@ static void atomlist_del_core(struct atomlist_head *h,
                                        memory_order_consume);
 
                        /* track the beginning of a chain of deleted items
-                        * this is neccessary to make this lock-free; we can
+                        * this is necessary to make this lock-free; we can
                         * complete deletions started by other threads.
                         */
                        if (!atomptr_l(prevval)) {
index c795128a34d5f56af5fb5b2fa2e49a3461ca2fb4..b0c4da4baa82706912f3771769e0e4c453c82916 100644 (file)
@@ -100,7 +100,7 @@ static inline bool atomptr_u(atomptr_t val)
 /* single-linked list, unsorted/arbitrary.
  * can be used as queue with add_tail / pop
  *
- * all operations are lock-free, but not neccessarily wait-free.  this means
+ * all operations are lock-free, but not necessarily wait-free.  this means
  * that there is no state where the system as a whole stops making process,
  * but it *is* possible that a *particular* thread is delayed by some time.
  *
index ea363b7ca4a3404faf1f52d07b16615424eb44ab..5a8a46b67bfa6dd36a35b189eb6f36f87135149b 100644 (file)
--- a/lib/bfd.c
+++ b/lib/bfd.c
@@ -203,7 +203,7 @@ static void bfd_last_update(time_t last_update, char *buf, size_t len)
        struct tm tm;
        struct timeval tv;
 
-       /* If no BFD satatus update has ever been received, print `never'. */
+       /* If no BFD status update has ever been received, print `never'. */
        if (last_update == 0) {
                snprintf(buf, len, "never");
                return;
index 41b1adc9fc0d2dc9e333ac84e1ffb4495a0bd859..e976fecc1f13a971d5d5e484dab2cce7604b89f1 100644 (file)
@@ -59,7 +59,7 @@ struct buffer_data {
 /* It should always be true that: 0 <= sp <= cp <= size */
 
 /* Default buffer size (used if none specified).  It is rounded up to the
-   next page boundery. */
+   next page boundary. */
 #define BUFFER_SIZE_DEFAULT            4096
 
 #define BUFFER_DATA_FREE(D) XFREE(MTYPE_BUFFER_DATA, (D))
index 8a7c9a2048b47ef2c6cadcbe0ed9d5e1a4da42e4..e2eec1aac68c726b676fef72d4dc68e71706272d 100644 (file)
@@ -234,7 +234,7 @@ struct cmd_node {
 /* Argc max counts. */
 #define CMD_ARGC_MAX   256
 
-/* Turn off these macros when uisng cpp with extract.pl */
+/* Turn off these macros when using cpp with extract.pl */
 #ifndef VTYSH_EXTRACT_PL
 
 /* helper defines for end-user DEFUN* macros */
index fcb333120fb81f819c314e0b652ee073c229aee4..0488cc1a1fe6508e048bf8590931f14e70211e25 100644 (file)
@@ -68,7 +68,7 @@ enum match_type {
  * @param[in] vline vectorized input string
  * @param[out] argv pointer to argument list if successful match, NULL
  * otherwise. The elements of this list are pointers to struct cmd_token
- * and represent the sequence of tokens matched by the inpu. The ->arg
+ * and represent the sequence of tokens matched by the input. The ->arg
  * field of each token points to a copy of the input matched on it. These
  * may be safely deleted or modified.
  * @param[out] element pointer to matched cmd_element if successful match,
index 3e2cdc79af9c003128d63a243d44fa64c60c3a23..dccd738f315662e2a5d0cd4946a8821ce392b29c 100644 (file)
@@ -338,7 +338,7 @@ selector: '{' selector_seq_seq '}' varname_token
    * 1) this allows "at least 1 of" semantics, which are otherwise impossible
    * 2) this would add a start->end->start loop in the graph that the current
    *    loop-avoidal fails to handle
-   * just use [{a|b}] if neccessary, that will work perfectly fine, and reason
+   * just use [{a|b}] if necessary, that will work perfectly fine, and reason
    * #1 is good enough to keep it this way. */
 
   loopcheck(ctx, &$$);
index 32ba83b65671faff1c080311d95e5213502953be..b4286b8d2cbfd1b7fb7d4333754908ad6425aead 100644 (file)
--- a/lib/db.c
+++ b/lib/db.c
@@ -60,7 +60,7 @@ int db_init(const char *path_fmt, ...)
                            (SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE), NULL)
            != SQLITE_OK) {
                if (dbp == NULL) {
-                       zlog_warn("%s: failed to open dabatase '%s'", __func__,
+                       zlog_warn("%s: failed to open database '%s'", __func__,
                                  path);
                        return -1;
                }
index 83682dea6ad4fb822e67a89e643738f7c16bc0ea..6b3226e8b4b3a95b14afb52b2c9b37ae51a0032b 100644 (file)
@@ -29,7 +29,7 @@
 extern "C" {
 #endif
 
-/* Disctirubte list types. */
+/* Distribute list types. */
 enum distribute_type {
        DISTRIBUTE_V4_IN,
        DISTRIBUTE_V6_IN,
index 4e95431cea211e75a19225acf0b1ded5e0535a95..c27601f66c4218b5386537050bf7534f57b18849 100644 (file)
@@ -34,7 +34,7 @@ extern "C" {
 /* return type when this error indication stuff is used.
  *
  * guaranteed to have boolean evaluation to "false" when OK, "true" when error
- * (i.e. can be changed to pointer in the future if neccessary)
+ * (i.e. can be changed to pointer in the future if necessary)
  *
  * For checking, always use "if (value)", nothing else.
  * Do _NOT_ use any integer constant (!= 0), or sign check (< 0).
index 744ea9c480a2ac8497edaa24ac2779412fdaa24d..39c2e0e7043cac6cb4b9c361e957a5ab696a7b15 100644 (file)
@@ -192,7 +192,7 @@ void access_list_delete(struct access_list *access)
        access_list_free(access);
 }
 
-/* Insert new access list to list of access_list.  Each acceess_list
+/* Insert new access list to list of access_list.  Each access_list
    is sorted by the name. */
 static struct access_list *access_list_insert(afi_t afi, const char *name)
 {
@@ -387,7 +387,7 @@ void access_list_filter_add(struct access_list *access,
        struct filter *replace;
        struct filter *point;
 
-       /* Automatic asignment of seq no. */
+       /* Automatic assignment of seq no. */
        if (filter->seq == -1)
                filter->seq = filter_new_seq_get(access);
 
index ea9c828f7c00af80b564912fefa6a223ca7acca5..e297985f9457c5fbb95cfbde80658b5b79afc715 100644 (file)
@@ -19,7 +19,7 @@
 
 /*
  * IF YOU MODIFY THIS FILE PLEASE RUN `make check` and ensure that
- * the test_zmq.c unit test is still working.  There are dependancies
+ * the test_zmq.c unit test is still working.  There are dependencies
  * between the two that are extremely fragile.  My understanding
  * is that there is specialized ownership of the cb pointer based
  * upon what is happening.  Those assumptions are supposed to be
index 0e0d3c030c8237842936773aa0f8768d51b98b45..b935b30cc29c3c37b4aa3cbe45ee39b65a6da4eb 100644 (file)
@@ -226,7 +226,7 @@ void *frrscript_get_result(struct frrscript *fs, const char *function_name,
        p = lua_to(lfs->L, 2);
 
        /* At the end, the Lua state should be same as it was at the start
-        * i.e. containing soley the returned table.
+        * i.e. containing solely the returned table.
         */
        assert(lua_gettop(lfs->L) == 1);
        assert(lua_istable(lfs->L, -1) == 1);
index 1cbe1b90f96dcc1060b19aa66e7ccaabc8192edc..ba7314fb25b11684553145fae07d51e6a31f0b9e 100644 (file)
@@ -69,7 +69,7 @@ static void graph_vector_remove(vector v, unsigned int ix)
         * and v->active is > ix. */
        v->active--;
        /* if ix == v->active--, we set the item to itself, then to NULL...
-        * still correct, no check neccessary. */
+        * still correct, no check necessary. */
        v->index[ix] = v->index[v->active];
        v->index[v->active] = NULL;
 }
index 47d951a34b2a6eb9a2525e890b243663a53116c0..f3b24f051b8c003af1a4d1a8aed61b9ff1c69c83 100644 (file)
@@ -161,7 +161,7 @@ hash_create_size(unsigned int size, unsigned int (*hash_key)(const void *),
  * an element from its key, you must provide the data item itself, with the
  * portions used in the hash function set to the same values as the data item
  * to retrieve. To insert a data element, either provide the key as just
- * described and provide alloc_func as descrbied below to allocate the full
+ * described and provide alloc_func as described below to allocate the full
  * data element, or provide the full data element and pass 'hash_alloc_intern'
  * to alloc_func.
  *
index 3a0db6009b459ff997e2b7f9c2303495f9f6bf6a..d75e623edc37f913b436e5d2946dba81d224795d 100644 (file)
@@ -193,7 +193,7 @@ extern void _hook_unregister(struct hook *hook, void *funcptr, void *arg,
  * usage:  DECLARE_HOOK(my_hook, (int arg1, struct foo *arg2), (arg1, arg2));
  * as above, "passlist" must use the same order and same names as "arglist"
  *
- * theoretically passlist is not neccessary, but let's keep things simple and
+ * theoretically passlist is not necessary, but let's keep things simple and
  * use exact same args on DECLARE and DEFINE.
  */
 #define DECLARE_HOOK(hookname, arglist, passlist)                              \
index 424880ff425a3a21e852f4a359f76b0682151efc..cbd1b957d97c1816a704ebe09d7295d08285011c 100644 (file)
--- 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);
index 43e2d3cffaaecead6d3455f702f4ab6e6895942d..59e75d8b6885b9f10ba5e1ac23fe28aba3b3e7ef 100644 (file)
--- a/lib/if.h
+++ b/lib/if.h
@@ -251,8 +251,8 @@ struct interface {
        /* Interface MTU. */
        unsigned int mtu; /* IPv4 MTU */
        unsigned int
-               mtu6; /* IPv6 MTU - probably, but not neccessarily same as mtu
-                        */
+               mtu6; /* IPv6 MTU - probably, but not necessarily same as mtu
+                      */
 
        /* Link-layer information and hardware address */
        enum zebra_link_type ll_type;
index 17695e6607c8049d150f054957df8cbb9de30dfd..a139b9a14ca6c36f3d7f9b7145b19408819ecc01 100644 (file)
@@ -41,19 +41,19 @@ static struct log_ref ferr_lib_warn[] = {
        {
                .code = EC_LIB_LINUX_NS,
                .title = "The Linux namespace subsystem has encountered a parsing error",
-               .description = "During system startup an invalid parameter for the namesapce was give to FRR",
+               .description = "During system startup an invalid parameter for the namespace was give to FRR",
                .suggestion = "Gather log data and open an Issue. restart FRR",
        },
        {
                .code = EC_LIB_SLOW_THREAD_CPU,
                .title = "The Event subsystem has detected a slow cpu time process",
-               .description = "The Event subsystem has detected a slow process, this typically indicates that FRR is having trouble completing work in a timely manner.  This can be either a misconfiguration, bug, or some combination therof.  In this case total CPU time was over 5 seconds.  Which indicates that FRR is very busy doing some work and should be addressed",
+               .description = "The Event subsystem has detected a slow process, this typically indicates that FRR is having trouble completing work in a timely manner.  This can be either a misconfiguration, bug, or some combination thereof.  In this case total CPU time was over 5 seconds.  Which indicates that FRR is very busy doing some work and should be addressed",
                .suggestion = "Gather log data and open an Issue",
        },
        {
                .code = EC_LIB_SLOW_THREAD_WALL,
                .title = "The Event subsystem has detected a slow wall time process",
-               .description = "The Event subsystem has detected a slow process, this typically indicates that FRR is having trouble completing work in a timely manner.  This can be either a misconfiguration, bug or some combination therof.  In this case total WALL time was over 5 seconds.  Which indicates that FRR might be having trouble being scheduled or some system call is delaying",
+               .description = "The Event subsystem has detected a slow process, this typically indicates that FRR is having trouble completing work in a timely manner.  This can be either a misconfiguration, bug or some combination thereof.  In this case total WALL time was over 5 seconds.  Which indicates that FRR might be having trouble being scheduled or some system call is delaying",
                .suggestion = "Gather log data and open an Issue",
        },
        {
@@ -286,7 +286,7 @@ static struct log_ref ferr_lib_err[] = {
        },
        {
                .code = EC_LIB_NB_CB_INVALID_PRIO,
-               .title = "Norhtbound callback has an invalid priority",
+               .title = "Northbound callback has an invalid priority",
                .description = "The northbound subsystem, during initialization, has detected a callback whose priority is invalid",
                .suggestion = "This is a bug; please report it"
        },
index d2bb29d80e16ada46c12c1a8974f465e6ba302ff..c8ada9d3c52fb69b66cd0a9ae2965860283c2413 100644 (file)
@@ -36,7 +36,7 @@ extern "C" {
 #define IPPROTO_OSPFIGP         89
 #endif /* IPPROTO_OSPFIGP */
 
-/* Architectual Constants */
+/* Architectural Constants */
 #ifdef DEBUG
 #define OSPF_LS_REFRESH_TIME                   120
 #else
index cde842b88c4c25eb2a910129732df3364fb1294e..43c0d8c3595e2c45b4d05379183e4aa4d6e9d8a6 100644 (file)
@@ -279,7 +279,7 @@ static void ns_disable_internal(struct ns *ns)
        }
 }
 
-/* VRF list existance check by name. */
+/* VRF list existence check by name. */
 static struct ns_map_nsid *ns_map_nsid_lookup_by_nsid(ns_id_t ns_id)
 {
        struct ns_map_nsid ns_map;
index ef7d2e59daaded2799853c70c510a36ab50576d4..df753fe10b812a94a11f0eb27be0ccd897581db0 100644 (file)
@@ -113,7 +113,7 @@ const char *family2str(int family)
        return "?";
 }
 
-/* Address Famiy Identifier to Address Family converter. */
+/* Address Family Identifier to Address Family converter. */
 int afi2family(afi_t afi)
 {
        if (afi == AFI_IP)
index 5c60b7d1c6d42637bf9cd37fdb25d3b742935f40..6227ebf15804f0ae15dfc33b3d41ba65abfc7741 100644 (file)
@@ -2480,7 +2480,7 @@ void route_map_notify_pentry_dependencies(const char *affected_name,
                        do whatever the exit policy (EXIT, NEXT or GOTO) tells.
      on-match next    - If this clause is matched, then the set statements
                        are executed and then we drop through to the next clause
-     on-match goto n  - If this clause is matched, then the set statments
+     on-match goto n  - If this clause is matched, then the set statements
                        are executed and then we goto the nth clause, or the
                        first clause greater than this. In order to ensure
                        route-maps *always* exit, you cannot jump backwards.
index 9f0311006d11c134fa1d5ce99c9a36c7429765e5..aaa2db0edb8dad893ce46e6054131f5bfa7aa55f 100644 (file)
@@ -35,7 +35,7 @@ extern "C" {
  * without any information about the previous parsing steps, is usually not very
  * helpful.
  * Using sbuf, the parser can log the whole parsing process into a buffer using
- * a printf like API. When an error ocurrs, all the information about previous
+ * a printf like API. When an error occurs, all the information about previous
  * parsing steps is there in the log, without any need for backtracking, and can
  * be used to give a detailed and useful error description.
  * When parsing completes successfully without any error, the log can just be
index be7297f26441d57d3f13b7fdab2b1dcb0614ab4f..6710527ae9f0d26bd5aefa4cbc4f4b7a88a84b55 100644 (file)
@@ -96,7 +96,7 @@ int quagga_sigevent_process(void)
        struct quagga_signal_t *sig;
        int i;
 #ifdef SIGEVENT_BLOCK_SIGNALS
-       /* shouldnt need to block signals, but potentially may be needed */
+       /* shouldn't need to block signals, but potentially may be needed */
        sigset_t newmask, oldmask;
 
        /*
@@ -142,7 +142,7 @@ int quagga_sigevent_process(void)
 }
 
 #ifdef SIGEVENT_SCHEDULE_THREAD
-/* timer thread to check signals. Shouldnt be needed */
+/* timer thread to check signals. shouldn't be needed */
 int quagga_signal_timer(struct thread *t)
 {
        struct quagga_sigevent_master_t *sigm;
index c5219f7381f93c81801a7065bccbfcdf9b98a864..81407826f2eac07f5cedcd916b24e23ffb59a26b 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 /*
- * Skip List impementation based on code from William Pugh.
+ * Skip List implementation based on code from William Pugh.
  * ftp://ftp.cs.umd.edu/pub/skipLists/
  *
  * Skip Lists are a probabilistic alternative to balanced trees, as
index 00950e13bbc5fe5292b98b67201e6fe856aecac2..165607820aac5b1299ca68e81a65aa16e74c1d34 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 /*
- * Skip List impementation based on code from William Pugh.
+ * Skip List implementation based on code from William Pugh.
  * ftp://ftp.cs.umd.edu/pub/skipLists/
  */