From: Guus Sliepen Date: Fri, 3 Apr 2026 15:09:22 +0000 (+0200) Subject: Spelling fixes X-Git-Url: https://www.tinc-vpn.org/git/?a=commitdiff_plain;h=508e3fd5e156c9e1624217bccabc3f542e1676dc;p=tinc Spelling fixes Found by codespell. --- diff --git a/NEWS b/NEWS index ffd6be29..0880d1e4 100644 --- a/NEWS +++ b/NEWS @@ -207,7 +207,7 @@ Thanks to Martin Schobert for auditing tinc and reporting the vulnerability. # Version 1.1pre6 February 20 2013 -* Fixed tincd exitting immediately on Windows. +* Fixed tincd exiting immediately on Windows. * Detect PMTU increases. * Fixed crashes when using a SOCKS5 proxy. * Fixed control connection when using a proxy. diff --git a/doc/PROTOCOL b/doc/PROTOCOL index 3ac95849..4d353f80 100644 --- a/doc/PROTOCOL +++ b/doc/PROTOCOL @@ -128,7 +128,7 @@ chances are that not every tinc daemon will ever send a packet to every other daemon. Instead, if a daemon needs a key it sends a request for it via the meta connection of the nearest hop in the direction of the destination. If any hop on the way has already learned the key, it will -act as a proxy and forward its copy back to the requestor. +act as a proxy and forward its copy back to the requester. daemon message -------------------------------------------------------------------------- diff --git a/doc/tinc.texi b/doc/tinc.texi index 7fe8e503..cdb21c8e 100644 --- a/doc/tinc.texi +++ b/doc/tinc.texi @@ -312,7 +312,7 @@ To use the utun driver, add @samp{Device = utunX} to @file{tinc.conf}, where X is the desired number for the utun interface. You can also omit the number, in which case the first free number will be chosen. -On OS X version 14 and above tinc supports the build-in "vmnet" driver. +On OS X version 14 and above tinc supports the built-in "vmnet" driver. Use this driver if you need to run Tinc in "switch" mode on more recent Macs. To use the vmnet driver add @samp{DeviceType = vmnet} to @file{tinc.conf}. "vmnet" devices have a fixed network configuration and cannot be configured with the diff --git a/src/bsd/darwin/tunemu.c b/src/bsd/darwin/tunemu.c index 4e3fbc7d..8ab3598f 100644 --- a/src/bsd/darwin/tunemu.c +++ b/src/bsd/darwin/tunemu.c @@ -155,7 +155,7 @@ static int ppp_new_instance() { } } - // connect to ppp procotol + // connect to ppp protocol struct sockaddr_ppp pppaddr; pppaddr.ppp_len = sizeof(struct sockaddr_ppp); pppaddr.ppp_family = AF_PPP; diff --git a/src/hash.h b/src/hash.h index 531c6639..3c0baee5 100644 --- a/src/hash.h +++ b/src/hash.h @@ -50,7 +50,7 @@ uint32_t modulo(uint32_t hash, size_t n); } \ if(++i == n) i = 0; \ } \ - /* We always pick the last slot. It's unfair. But thats life */ \ + /* We always pick the last slot. */ \ memcpy(&hash->keys[i], key, sizeof(t)); \ hash->values[i] = value; \ } \ diff --git a/src/netutl.c b/src/netutl.c index 6654f977..1dca15bc 100644 --- a/src/netutl.c +++ b/src/netutl.c @@ -199,7 +199,7 @@ int sockaddrcmp_noport(const sockaddr_t *a, const sockaddr_t *b) { return memcmp(&a->in6.sin6_addr, &b->in6.sin6_addr, sizeof(a->in6.sin6_addr)); default: - logger(DEBUG_ALWAYS, LOG_ERR, "sockaddrcmp() was called with unknown address family %d, exitting!", + logger(DEBUG_ALWAYS, LOG_ERR, "sockaddrcmp() was called with unknown address family %d, exiting!", a->sa.sa_family); abort(); } @@ -246,7 +246,7 @@ int sockaddrcmp(const sockaddr_t *a, const sockaddr_t *b) { return memcmp(&a->in6.sin6_port, &b->in6.sin6_port, sizeof(a->in6.sin6_port)); default: - logger(DEBUG_ALWAYS, LOG_ERR, "sockaddrcmp() was called with unknown address family %d, exitting!", + logger(DEBUG_ALWAYS, LOG_ERR, "sockaddrcmp() was called with unknown address family %d, exiting!", a->sa.sa_family); abort(); } diff --git a/src/subnet_parse.c b/src/subnet_parse.c index e9271c12..3147dc7c 100644 --- a/src/subnet_parse.c +++ b/src/subnet_parse.c @@ -200,7 +200,7 @@ int subnet_compare(const subnet_t *a, const subnet_t *b) { return subnet_compare_ipv6(a, b); default: - logger(DEBUG_ALWAYS, LOG_ERR, "subnet_compare() was called with unknown subnet type %d, exitting!", a->type); + logger(DEBUG_ALWAYS, LOG_ERR, "subnet_compare() was called with unknown subnet type %d, exiting!", a->type); exit(1); } diff --git a/test/unit/test_fs.c b/test/unit/test_fs.c index 579efa3f..b335174a 100644 --- a/test/unit/test_fs.c +++ b/test/unit/test_fs.c @@ -77,18 +77,18 @@ static void test_makedir(unsigned int dir, bool exists) { char path[PATH_MAX]; char container[PATH_MAX] = {0}; - if (dir == DIR_CONFDIR) { + if(dir == DIR_CONFDIR) { strcpy(path, tmp); - } else if (dir == DIR_CONFBASE) { + } else if(dir == DIR_CONFBASE) { sprintf(path, "%s/conf", tmp); strcpy(container, tmp); - } else if (dir == DIR_CACHE) { + } else if(dir == DIR_CACHE) { sprintf(path, "%s/conf/cache", tmp); sprintf(container, "%s/conf", tmp); - } else if (dir == DIR_HOSTS) { + } else if(dir == DIR_HOSTS) { sprintf(path, "%s/conf/hosts", tmp); sprintf(container, "%s/conf", tmp); - } else if (dir == DIR_INVITATIONS) { + } else if(dir == DIR_INVITATIONS) { sprintf(path, "%s/conf/invitations", tmp); sprintf(container, "%s/conf", tmp); } else {