From: Guus Sliepen Date: Sun, 23 Sep 2018 15:35:37 +0000 (+0200) Subject: Fix spelling errors. X-Git-Tag: release-1.0.35~3 X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;h=600b653da1c2706aef7b28af873794a05127c64f;p=tinc Fix spelling errors. Found by codespell. --- diff --git a/src/fake-getaddrinfo.c b/src/fake-getaddrinfo.c index 231bd5c2..1ee11c5d 100644 --- a/src/fake-getaddrinfo.c +++ b/src/fake-getaddrinfo.c @@ -2,10 +2,10 @@ * fake library for ssh * * This file includes getaddrinfo(), freeaddrinfo() and gai_strerror(). - * These funtions are defined in rfc2133. + * These functions are defined in rfc2133. * * But these functions are not implemented correctly. The minimum subset - * is implemented for ssh use only. For exapmle, this routine assumes + * is implemented for ssh use only. For example, this routine assumes * that ai_family is AF_INET. Don't use it for another purpose. */ diff --git a/src/fake-getnameinfo.c b/src/fake-getnameinfo.c index 88b78a59..e51bce24 100644 --- a/src/fake-getnameinfo.c +++ b/src/fake-getnameinfo.c @@ -2,10 +2,10 @@ * fake library for ssh * * This file includes getnameinfo(). - * These funtions are defined in rfc2133. + * These functions are defined in rfc2133. * * But these functions are not implemented correctly. The minimum subset - * is implemented for ssh use only. For exapmle, this routine assumes + * is implemented for ssh use only. For example, this routine assumes * that ai_family is AF_INET. Don't use it for another purpose. */ diff --git a/src/route.c b/src/route.c index 3e86b40d..850a146e 100644 --- a/src/route.c +++ b/src/route.c @@ -882,7 +882,7 @@ static void route_neighborsol(node_t *source, vpn_packet_t *packet) { memcpy(packet->data, packet->data + ETH_ALEN, ETH_ALEN); /* copy destination address */ packet->data[ETH_ALEN * 2 - 1] ^= 0xFF; /* mangle source address so it looks like it's not from us */ - ip6.ip6_dst = ip6.ip6_src; /* swap destination and source protocoll address */ + ip6.ip6_dst = ip6.ip6_src; /* swap destination and source protocol address */ ip6.ip6_src = ns.nd_ns_target; if(has_opt) { diff --git a/src/xalloc.h b/src/xalloc.h index 0eecda5b..cda08715 100644 --- a/src/xalloc.h +++ b/src/xalloc.h @@ -2,7 +2,7 @@ #define TINC_XALLOC_H /* - xalloc.h -- malloc and related fuctions with out of memory checking + xalloc.h -- malloc and related functions with out of memory checking Copyright (C) 1990, 91, 92, 93, 94, 95, 96, 97 Free Software Foundation, Inc. Copyright (C) 2011-2017 Guus Sliepen