Skip to content

Commit

Permalink
src/core: Fix speling issues
Browse files Browse the repository at this point in the history
Found by codespell
  • Loading branch information
yarrick committed Oct 14, 2023
1 parent 8c11901 commit 5e3268c
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions codespell_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ CODESPELL_OPTS+=" --check-hidden"
# "ofo => of", "WAN => WANT", "mut => must, mutt, moot"
CODESPELL_OPTS+=" --ignore-words-list=nd,ans,tolen,ofo,wan,mut,clen,useg,clos "
CODESPELL_OPTS+=" --ignore-words-list=devine,clinet,linz,garantie,explicite,numer "
CODESPELL_OPTS+=" --ignore-words-list=skool "
# propagate all options to codespell -> pass "-w" to this script to write changes
CODESPELL_OPTS+="$@"

Expand Down
2 changes: 1 addition & 1 deletion src/core/ipv4/acd.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ acd_add(struct netif *netif, struct acd *acd,

/**
* @ingroup acd
* Remvoe ACD client from the client list
* Remove ACD client from the client list
*
* @param netif network interface from which to remove the acd client
* @param acd acd module to be removed from the list
Expand Down
4 changes: 2 additions & 2 deletions src/core/ipv6/nd6.c
Original file line number Diff line number Diff line change
Expand Up @@ -1176,7 +1176,7 @@ nd6_tmr(void)

/** Send a neighbor solicitation message for a specific neighbor cache entry
*
* @param entry the neightbor cache entry for which to send the message
* @param entry the neighbor cache entry for which to send the message
* @param flags one of ND6_SEND_FLAG_*
*/
static void
Expand Down Expand Up @@ -1707,7 +1707,7 @@ nd6_select_router(const ip6_addr_t *ip6addr, struct netif *netif)
/* Look for valid routers. A reachable router is preferred. */
valid_router = -1;
for (i = 0; i < LWIP_ND6_NUM_ROUTERS; i++) {
/* Is the router netif both set and apppropriate? */
/* Is the router netif both set and appropriate? */
if (default_router_list[i].neighbor_entry != NULL) {
router_netif = default_router_list[i].neighbor_entry->netif;
if ((router_netif != NULL) && (netif != NULL ? netif == router_netif :
Expand Down
2 changes: 1 addition & 1 deletion src/core/mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ mem_trim(void *rmem, mem_size_t new_size)
/* else {
next struct mem is used but size between mem and mem2 is not big enough
to create another struct mem
-> don't do anyhting.
-> don't do anything.
-> the remaining space stays unused since it is too small
} */
#if MEM_OVERFLOW_CHECK
Expand Down
2 changes: 1 addition & 1 deletion src/core/netif.c
Original file line number Diff line number Diff line change
Expand Up @@ -1409,7 +1409,7 @@ netif_ip6_addr_set_parts(struct netif *netif, s8_t addr_idx, u32_t i0, u32_t i1,
if (ip6_addr_isvalid(netif_ip6_addr_state(netif, addr_idx))) {
netif_do_ip_addr_changed(netif_ip_addr6(netif, addr_idx), &new_ipaddr);
}
/* @todo: remove/readd mib2 ip6 entries? */
/* @todo: remove/re-add mib2 ip6 entries? */

ip_addr_copy(netif->ip6_addr[addr_idx], new_ipaddr);

Expand Down
2 changes: 1 addition & 1 deletion src/core/tcp_in.c
Original file line number Diff line number Diff line change
Expand Up @@ -1564,7 +1564,7 @@ tcp_receive(struct tcp_pcb *pcb)
recv_data = inseg.p;
/* Since this pbuf now is the responsibility of the
application, we delete our reference to it so that we won't
(mistakingly) deallocate it. */
(mistakenly) deallocate it. */
inseg.p = NULL;
}
if (TCPH_FLAGS(inseg.tcphdr) & TCP_FIN) {
Expand Down
2 changes: 1 addition & 1 deletion src/core/tcp_out.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ tcp_seg_add_chksum(u16_t chksum, u16_t len, u16_t *seg_chksum,
/** Checks if tcp_write is allowed or not (checks state, snd_buf and snd_queuelen).
*
* @param pcb the tcp pcb to check for
* @param len length of data to send (checked agains snd_buf)
* @param len length of data to send (checked against snd_buf)
* @return ERR_OK if tcp_write is allowed to proceed, another err_t otherwise
*/
static err_t
Expand Down
2 changes: 1 addition & 1 deletion src/core/udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ udp_bind(struct udp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port)
for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) {
if (pcb != ipcb) {
/* By default, we don't allow to bind to a port that any other udp
PCB is already bound to, unless *all* PCBs with that port have tha
PCB is already bound to, unless *all* PCBs with that port have the
REUSEADDR flag set. */
#if SO_REUSE
if (!ip_get_option(pcb, SOF_REUSEADDR) ||
Expand Down
2 changes: 1 addition & 1 deletion src/include/lwip/arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ extern "C" {
#define LWIP_PROVIDE_ERRNO
#endif

/* Use a special, reproducable version of rand() for fuzz tests? */
/* Use a special, reproducible version of rand() for fuzz tests? */
#ifdef LWIP_RAND_FOR_FUZZ
#ifdef LWIP_RAND
#undef LWIP_RAND
Expand Down
2 changes: 1 addition & 1 deletion src/include/lwip/snmp.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file
* SNMP support API for implementing netifs and statitics for MIB2
* SNMP support API for implementing netifs and statistics for MIB2
*/

/*
Expand Down

0 comments on commit 5e3268c

Please sign in to comment.