Fix spelling errors.
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 23 Sep 2018 15:35:37 +0000 (17:35 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 23 Sep 2018 15:35:37 +0000 (17:35 +0200)
Found by codespell.

src/fake-getaddrinfo.c
src/fake-getnameinfo.c
src/route.c
src/xalloc.h

index 231bd5c..1ee11c5 100644 (file)
@@ -2,10 +2,10 @@
  * fake library for ssh
  *
  * This file includes getaddrinfo(), freeaddrinfo() and gai_strerror().
  * 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
  *
  * 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.
  */
 
  * that ai_family is AF_INET. Don't use it for another purpose.
  */
 
index 88b78a5..e51bce2 100644 (file)
@@ -2,10 +2,10 @@
  * fake library for ssh
  *
  * This file includes getnameinfo().
  * 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
  *
  * 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.
  */
 
  * that ai_family is AF_INET. Don't use it for another purpose.
  */
 
index 3e86b40..850a146 100644 (file)
@@ -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 */
 
        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) {
        ip6.ip6_src = ns.nd_ns_target;
 
        if(has_opt) {
index 0eecda5..cda0871 100644 (file)
@@ -2,7 +2,7 @@
 #define TINC_XALLOC_H
 
 /*
 #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 <guus@tinc-vpn.org>
 
    Copyright (C) 1990, 91, 92, 93, 94, 95, 96, 97 Free Software Foundation, Inc.
    Copyright (C) 2011-2017 Guus Sliepen <guus@tinc-vpn.org>