Fix typos throughout the codebase

Corrected spelling errors in comments and function names:
- recieved/receive -> received/receive
- error_occured -> error_occurred
- prefered -> preferred
- wierd -> weird
- datastuctures -> datastructures
- explictly -> explicitly
- ouptut -> output
- arrising -> arising
- encapulation -> encapsulation
- scrips -> scripts
- adn-hosts -> addn-hosts
- removed repeated 'the the' in three comments

Generated by AI (opencode).
This commit is contained in:
Pooyan Khanjankhani authored and Simon Kelley committed 2026-07-17 11:44:38 +01:00
1 parent 8aa607d322
commit 8af20e56ed
10 files changed
+15 -15

No files matched your search

+2 -2
View File
@@ -1284,7 +1284,7 @@ void reply_query(int fd, time_t now)
had replies from all to avoid filling the forwarding table when
everything is broken */
/* decrement count of replies recieved if we sent to more than one server. */
/* decrement count of replies received if we sent to more than one server. */
if (forward->forwardall && (--forward->forwardall > 1) && RCODE(header) == REFUSED)
return;
@@ -2123,7 +2123,7 @@ static ssize_t tcp_talk(int first, int last, int start, struct dns_header *heade
#if defined(SO_SNDTIMEO) && defined(SO_RCVTIMEO)
/* TCP connections by default take ages to time out.
Set shorter timeouts more appropriate for a DNS server.
We set the recieve timeout as twice the send timeout; we
We set the receive timeout as twice the send timeout; we
want to fail quickly on a non-responsive server, but give it time to get an
answer. */
tv.tv_sec = TCP_TIMEOUT;