Skip to content

Commit

Permalink
documentation: fix various spelling typos
Browse files Browse the repository at this point in the history
Foudn with codespell.

Reference: https://github.com/codespell-project/codespell
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
  • Loading branch information
kerolasa committed Mar 9, 2019
1 parent ce26140 commit a933b86
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Documentation/README.maintainer
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Use git commit --author 'Contributor <email>' when receiving changes that
are not applicable as-is. Not stealing contributions applies even if change
has to be worked out, that is common case with commit message.

Exeception to this rule is a change that is a good idea, but has to be
Exception to this rule is a change that is a good idea, but has to be
completely rewrote to be acceptable for the project. In this case
maintainer should attribute the person who gave the idea in commit message.

Expand Down
2 changes: 1 addition & 1 deletion arping.c
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ static int check_device(struct run_state *ctl)
* find_broadcast_address()
*
* This fills the device "broadcast address"
* based on information found by check_device() funcion.
* based on information found by check_device() function.
*/
static void find_broadcast_address(struct run_state *ctl)
{
Expand Down
2 changes: 1 addition & 1 deletion ping.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ static uint32_t route[10];

static struct sockaddr_in whereto; /* who to ping */
static int optlen = 0;
static int settos = 0; /* Set TOS, Precendence or other QOS options */
static int settos = 0; /* Set TOS, Precedence or other QOS options */

static int broadcast_pings = 0;

Expand Down
2 changes: 1 addition & 1 deletion ping6_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* <roque@di.fc.ul.pt>
*
* Original copyright notice included bellow
* Original copyright notice included below
*/

/*
Expand Down
4 changes: 1 addition & 3 deletions ping_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -544,9 +544,7 @@ void setup(socket_st *sock)
disable_capability_admin();

if (ret == -1) {
/* we probably dont wanna exit since old kernels
* dont support mark ..
*/
/* Do not exit, old kernels do not support mark. */
error(0, errno_save, _("Warning: Failed to set mark: %d"), mark);
}
}
Expand Down
2 changes: 1 addition & 1 deletion rarpd.c
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ void serve_it(int fd)

/* Prepare reply. It is almost ready, we only
replace ARP packet type, put our lladdr and
IP address to source fileds,
IP address to source fields,
and fill target IP address.
*/
a->ar_op = htons(ARPOP_RREPLY);
Expand Down
4 changes: 2 additions & 2 deletions rdisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ pr_pack(char *buf, int cc, struct sockaddr_in *from)
pr_name(from->sin_addr),
ntohs(rap->icmp_lifetime));

/* Check that at least one router address is a neighboor
/* Check that at least one router address is a neighbour
* on the arriving link.
*/
for (i = 0; (unsigned)i < rap->icmp_num_addrs; i++) {
Expand Down Expand Up @@ -861,7 +861,7 @@ pr_pack(char *buf, int cc, struct sockaddr_in *from)
pr_type((int)icp->type),
pr_name(from->sin_addr));

/* Check that ip_src is either a neighboor
/* Check that ip_src is either a neighbour
* on the arriving link or 0.
*/
sin.sin_family = AF_INET;
Expand Down

0 comments on commit a933b86

Please sign in to comment.