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

+3 -3
View File
@@ -2309,7 +2309,7 @@ static char *edestr(int ede)
}
}
static int error_occured(unsigned int flags) {
static int error_occurred(unsigned int flags) {
if (flags & F_RCODE)
return 1;
else if (flags & F_NEG)
@@ -2330,10 +2330,10 @@ void log_query(unsigned int flags, char *name, union all_addr *addr, char *arg,
if (!option_bool(OPT_LOG))
return;
if(option_bool(OPT_LOG_ONLY_FAILED) && !error_occured(flags))
if(option_bool(OPT_LOG_ONLY_FAILED) && !error_occurred(flags))
return;
/* F_NOERR is reused here to indicate logs arrising from auth queries */
/* F_NOERR is reused here to indicate logs arising from auth queries */
if (!(flags & F_NOERR) && option_bool(OPT_AUTH_LOG))
return;