From f6a0fa9b4f78cc2d4c5e853dd0c22f2250ee95be Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Thu, 26 Feb 2026 21:46:57 +0100 Subject: [PATCH] Fix spelling mistakes found by codespell --- doc/PROTOCOL | 2 +- src/bsd/tunemu.c | 2 +- src/net.c | 2 +- src/netutl.c | 4 ++-- src/subnet.c | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/PROTOCOL b/doc/PROTOCOL index edf39065..fd56d33a 100644 --- a/doc/PROTOCOL +++ b/doc/PROTOCOL @@ -127,7 +127,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/src/bsd/tunemu.c b/src/bsd/tunemu.c index 7ff6f720..7a13050c 100644 --- a/src/bsd/tunemu.c +++ b/src/bsd/tunemu.c @@ -154,7 +154,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/net.c b/src/net.c index 0f6b9f4e..7e621df6 100644 --- a/src/net.c +++ b/src/net.c @@ -607,7 +607,7 @@ int main_loop(void) { init_configuration(&config_tree); if(!read_server_config()) { - logger(LOG_ERR, "Unable to reread configuration file, exitting."); + logger(LOG_ERR, "Unable to reread configuration file, exiting."); return 1; } diff --git a/src/netutl.c b/src/netutl.c index abe3d876..54865225 100644 --- a/src/netutl.c +++ b/src/netutl.c @@ -168,7 +168,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(LOG_ERR, "sockaddrcmp() was called with unknown address family %d, exitting!", + logger(LOG_ERR, "sockaddrcmp() was called with unknown address family %d, exiting!", a->sa.sa_family); abort(); } @@ -215,7 +215,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(LOG_ERR, "sockaddrcmp() was called with unknown address family %d, exitting!", + logger(LOG_ERR, "sockaddrcmp() was called with unknown address family %d, exiting!", a->sa.sa_family); abort(); } diff --git a/src/subnet.c b/src/subnet.c index da69810c..7c4c94e1 100644 --- a/src/subnet.c +++ b/src/subnet.c @@ -146,7 +146,7 @@ int subnet_compare(const subnet_t *a, const subnet_t *b) { return subnet_compare_ipv6(a, b); default: - logger(LOG_ERR, "subnet_compare() was called with unknown subnet type %d, exitting!", + logger(LOG_ERR, "subnet_compare() was called with unknown subnet type %d, exiting!", a->type); exit(0); } -- 2.47.3