summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-01-13 22:16:07 +0000
committerMark Wielaard <mark@klomp.org>2023-01-13 23:46:00 +0100
commitd22b1b207a666f3fef1c9307f969ba1f79ce8f5b (patch)
treec4f647f325867287f35701cc4bd3b2ee9a220329 /lib
parenta724bae8320c64d7af6d1acfc09327445180715e (diff)
downloadelfutils-d22b1b207a666f3fef1c9307f969ba1f79ce8f5b.tar.gz
Fix typos from codespell
debuginfod/ChangeLog: * debuginfod-client.c: Typo simultaniously. doc/ChangeLog: * debuginfod.8: Typo succesfully. lib/ChangeLog: * dynamicsizehash_concurrent.c: Typo modul. * system.h: Typo dependend. libdwfl/ChangeLog: * open.c: Typo non-existant. src/ChangeLog: * nm.c: Typo Covert. * strings.c: Likewise. tests/ChangeLog: * elfstrmerge.c: Typo outselves. * run-debuginfod-extraction.sh: Typo accidentially. * run-debuginfod-fd-prefetch-caches.sh: Likewise. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/dynamicsizehash_concurrent.c4
-rw-r--r--lib/system.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/dynamicsizehash_concurrent.c b/lib/dynamicsizehash_concurrent.c
index 7c4fedfc..2ea545e0 100644
--- a/lib/dynamicsizehash_concurrent.c
+++ b/lib/dynamicsizehash_concurrent.c
@@ -42,7 +42,7 @@
static size_t
lookup (NAME *htab, HASHTYPE hval)
{
- /* First hash function: simply take the modul but prevent zero. Small values
+ /* First hash function: simply take the modulus but prevent zero. Small values
can skip the division, which helps performance when this is common. */
size_t idx = 1 + (hval < htab->size ? hval : hval % htab->size);
@@ -77,7 +77,7 @@ lookup (NAME *htab, HASHTYPE hval)
static int
insert_helper (NAME *htab, HASHTYPE hval, TYPE val)
{
- /* First hash function: simply take the modul but prevent zero. Small values
+ /* First hash function: simply take the modulus but prevent zero. Small values
can skip the division, which helps performance when this is common. */
size_t idx = 1 + (hval < htab->size ? hval : hval % htab->size);
diff --git a/lib/system.h b/lib/system.h
index bbbe06c4..1c914efc 100644
--- a/lib/system.h
+++ b/lib/system.h
@@ -39,7 +39,7 @@
#include <stdarg.h>
#include <stdlib.h>
-/* System dependend headers */
+/* System dependent headers */
#include <byteswap.h>
#include <endian.h>
#include <sys/mman.h>