Found using codespell. --- mesh/README | 2 +- mesh/mesh-io-generic.c | 2 +- mesh/mesh-io-mgmt.c | 2 +- mesh/mesh.c | 2 +- mesh/net.c | 4 ++-- mesh/net.h | 2 +- mesh/node.c | 2 +- mesh/prov-acceptor.c | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/mesh/README b/mesh/README index f36b97c2ba67..1f750060505f 100644 --- a/mesh/README +++ b/mesh/README @@ -40,7 +40,7 @@ Each subdirectory contains the following files: File containing next sequence number to use - seq_num.bak: Backup of the sequence number. This may be larger than the - actual sequence number being used at runtime, to prevent re-use + actual sequence number being used at runtime, to prevent reuse of sequence numbers in the event of an unexpected restart. - ./rpl/: Directory to store the sequence numbers of remote nodes, as diff --git a/mesh/mesh-io-generic.c b/mesh/mesh-io-generic.c index 3da0a8c2d227..1ec4f379def0 100644 --- a/mesh/mesh-io-generic.c +++ b/mesh/mesh-io-generic.c @@ -709,7 +709,7 @@ static bool send_tx(struct mesh_io *io, struct mesh_io_send_info *info, else { /* * If transmitter is idle, send packets at least twice to - * guard against in-line cancelation of HCI command chain. + * guard against in-line cancellation of HCI command chain. */ if (info->type == MESH_IO_TIMING_TYPE_GENERAL && !pvt->tx && diff --git a/mesh/mesh-io-mgmt.c b/mesh/mesh-io-mgmt.c index d185f5c9760f..f33f64124bd1 100644 --- a/mesh/mesh-io-mgmt.c +++ b/mesh/mesh-io-mgmt.c @@ -143,7 +143,7 @@ done: pvt->dup_timeout = NULL; } -/* Ignore consequtive duplicate advertisements within timeout period */ +/* Ignore consecutive duplicate advertisements within timeout period */ static bool filter_dups(const uint8_t *addr, const uint8_t *adv, uint32_t instant) { diff --git a/mesh/mesh.c b/mesh/mesh.c index 354aabaf388e..01a1607b1a31 100644 --- a/mesh/mesh.c +++ b/mesh/mesh.c @@ -97,7 +97,7 @@ static struct l_queue *pending_queue; static const char *storage_dir; -/* Forward static decalrations */ +/* Forward static declarations */ static void def_attach(struct l_timeout *timeout, void *user_data); static void def_leave(struct l_timeout *timeout, void *user_data); diff --git a/mesh/net.c b/mesh/net.c index 1cf74c892ca0..a49df531c933 100644 --- a/mesh/net.c +++ b/mesh/net.c @@ -846,7 +846,7 @@ int mesh_net_del_key(struct mesh_net *net, uint16_t idx) /* Delete associated app keys */ appkey_delete_bound_keys(net, idx); - /* Disable hearbeat publication on this subnet */ + /* Disable heartbeat publication on this subnet */ if (idx == net->hb_pub.net_idx) net->hb_pub.dst = UNASSIGNED_ADDRESS; @@ -1059,7 +1059,7 @@ static bool msg_in_cache(struct mesh_net *net, uint16_t src, uint32_t seq, msg = l_queue_find(net->msg_cache, match_cache, &tst); if (msg) { - l_debug("Supressing duplicate %4.4x + %6.6x + %8.8x", + l_debug("Suppressing duplicate %4.4x + %6.6x + %8.8x", src, seq, mic); return true; } diff --git a/mesh/net.h b/mesh/net.h index d385ba16efdd..8a3b4038b6de 100644 --- a/mesh/net.h +++ b/mesh/net.h @@ -89,7 +89,7 @@ struct mesh_node; #define PROXY_FILTER_ACCEPT_LIST 0x00 #define PROXY_FILTER_REJECT_LIST 0x01 -/* Network Tranport Opcodes */ +/* Network Transport Opcodes */ #define NET_OP_SEG_ACKNOWLEDGE 0x00 #define NET_OP_FRND_POLL 0x01 #define NET_OP_FRND_UPDATE 0x02 diff --git a/mesh/node.c b/mesh/node.c index 65161b7afb3d..7f20e97ea230 100644 --- a/mesh/node.c +++ b/mesh/node.c @@ -1329,7 +1329,7 @@ static bool get_element_properties(struct mesh_node *node, const char *path, /* * Add configuration server model on the primary element. - * We allow the application not to specify the presense of + * We allow the application not to specify the presence of * the Configuration Server model, since it's implemented by the * daemon. If the model is present in the application properties, * the operation below will be a "no-op". diff --git a/mesh/prov-acceptor.c b/mesh/prov-acceptor.c index 27d4964316b3..650309b635cd 100644 --- a/mesh/prov-acceptor.c +++ b/mesh/prov-acceptor.c @@ -546,7 +546,7 @@ static void acp_prov_rx(void *user_data, const void *dptr, uint16_t len) if (prov->conf_inputs.start.auth_action == PROV_ACTION_OUT_ALPHA) { - /* TODO: Construst NUL-term string to pass */ + /* TODO: Construct NUL-term string to pass */ fail.reason = mesh_agent_display_string( prov->agent, NULL, NULL, prov); } else { -- 2.50.0