Add .codespellignore file to fix spell-checker action

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2023-03-19 11:36:42 +01:00
parent a9bede4444
commit e08f118bba
No known key found for this signature in database
GPG Key ID: 00135ACBD90B28DD
6 changed files with 12 additions and 12 deletions

View File

@ -1,4 +0,0 @@
ede
edn
nd
tre

4
.github/.codespellignore vendored Normal file
View File

@ -0,0 +1,4 @@
ssudo
tre
ede
nd

View File

@ -15,5 +15,5 @@ jobs:
name: Spell-Checking
uses: codespell-project/actions-codespell@master
with:
ignore_words_file: .codespellignore
skip: ./src/database/sqlite3.c,./src/database/sqlite3.h,./src/database/shell.c,./src/lua,./src/dnsmasq,./src/tre-regex
ignore_words_file: .github/.codespellignore
skip: ./src/database/sqlite3.c,./src/database/sqlite3.h,./src/database/shell.c,./src/lua,./src/dnsmasq,./src/tre-regex,./.git,./test/libs

View File

@ -21,7 +21,7 @@
// EDNS(0) Client Subnet [Optional, RFC7871]
#define EDNS0_ECS EDNS0_OPTION_CLIENT_SUBNET
// EDN(0) COOKIE [Standard, RFC7873]
// EDNS(0) COOKIE [Standard, RFC7873]
#define EDNS0_COOKIE 10
// EDNS(0) MAC address [NOT STANDARDIZED]

View File

@ -333,13 +333,13 @@ const char __attribute__ ((const)) *get_ordinal_suffix(unsigned int number)
// If the tens digit is not equal to 1, then the following table could be used:
switch (number % 10)
{
case 1: // If the units digit is 1: This is written after the number "st"
case 1: // If the units digit is 1: This is written after the number "1st"
return "st";
case 2: // If the units digit is 2: This is written after the number "nd"
case 2: // If the units digit is 2: This is written after the number "2nd"
return "nd";
case 3: // If the units digit is 3: This is written after the number "rd"
case 3: // If the units digit is 3: This is written after the number "3rd"
return "rd";
default: // If the units digit is 0 or 4-9: This is written after the number "th"
default: // If the units digit is 0 or 4-9: This is written after the number "9th"
return "th";
}
// For example: 2nd, 7th, 20th, 23rd, 52nd, 135th, 301st BUT 311th (covered above)

View File

@ -15,7 +15,7 @@
extern const char *regextype[];
// Use TRE instead of GNU regex library (compiled into FTL itself)
// Use TRE-Engine instead of GNU/MUSL regex libraries
#define USE_TRE_REGEX
#ifdef USE_TRE_REGEX