From: Tobias Stoeckmann Date: Mon, 21 Oct 2024 15:29:58 +0000 (+0200) Subject: libkmod: Fix typos X-Git-Tag: v34~175 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b3a7664fea8ac352d626a6b4712232ab528b3c1e;p=thirdparty%2Fkmod.git libkmod: Fix typos Signed-off-by: Tobias Stoeckmann Link: https://github.com/kmod-project/kmod/pull/201 Signed-off-by: Lucas De Marchi --- diff --git a/libkmod/libkmod-index.c b/libkmod/libkmod-index.c index 6984496c..ac296ce4 100644 --- a/libkmod/libkmod-index.c +++ b/libkmod/libkmod-index.c @@ -635,7 +635,7 @@ struct index_mm_value_array { struct index_mm_node { struct index_mm *idx; - const char *prefix; /* mmape'd value */ + const char *prefix; /* mmap'ed value */ struct index_mm_value_array values; unsigned char first; unsigned char last; @@ -647,7 +647,7 @@ static inline uint32_t read_u32_mm(const void **p) const uint8_t *addr = *(const uint8_t **)p; uint32_t v; - /* addr may be unalined to uint32_t */ + /* addr may be unaligned to uint32_t */ v = get_unaligned((const uint32_t *)addr); *p = addr + sizeof(uint32_t); @@ -945,7 +945,7 @@ static char *index_mm_search_node(struct index_mm_node *node, const char *key, i * * Returns the value of the first match * - * The recursive functions free their node argument (using index_close). + * The recursive functions free their node argument (using index_mm_free_node). */ char *index_mm_search(struct index_mm *idx, const char *key) {