From: "Dmitry V. Levin" <ldv@altlinux.org>
To: elfutils-devel@sourceware.org
Subject: [PATCH 07/12] libdwelf: fix spelling typos in comments
Date: Sat, 12 Dec 2020 19:51:15 +0300 [thread overview]
Message-ID: <20201212165114.GG503@altlinux.org> (raw)
In-Reply-To: <20201212164901.GA474@altlinux.org>
algorith -> algorithm
occured -> occurred
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
---
libdwelf/ChangeLog | 3 +++
libdwelf/dwelf_strtab.c | 2 +-
libdwelf/libdwelf.h | 4 ++--
3 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/libdwelf/ChangeLog b/libdwelf/ChangeLog
index 9d05390c..a0ff9f4f 100644
--- a/libdwelf/ChangeLog
+++ b/libdwelf/ChangeLog
@@ -1,5 +1,8 @@
2020-12-12 Dmitry V. Levin <ldv@altlinux.org>
+ * libdwelf.h: Fix spelling typos in comments.
+ * dwelf_strtab.c (newstring): Likewise.
+
* dwelf_elf_e_machine_string.c (dwelf_elf_e_machine_string): Fix
spelling typos in returned strings.
diff --git a/libdwelf/dwelf_strtab.c b/libdwelf/dwelf_strtab.c
index 01e091c8..c6ae7cdf 100644
--- a/libdwelf/dwelf_strtab.c
+++ b/libdwelf/dwelf_strtab.c
@@ -183,7 +183,7 @@ newstring (Dwelf_Strtab *st, const char *str, size_t len)
/* XXX This function should definitely be rewritten to use a balancing
- tree algorith (AVL, red-black trees). For now a simple, correct
+ tree algorithm (AVL, red-black trees). For now a simple, correct
implementation is enough. */
static Dwelf_Strent **
searchstring (Dwelf_Strent **sep, Dwelf_Strent *newstr)
diff --git a/libdwelf/libdwelf.h b/libdwelf/libdwelf.h
index dbb8f08c..263ca60e 100644
--- a/libdwelf/libdwelf.h
+++ b/libdwelf/libdwelf.h
@@ -44,7 +44,7 @@ extern "C" {
/* Returns the name and the CRC32 of the separate debug file from the
.gnu_debuglink section if found in the ELF. Return NULL if the ELF
file didn't have a .gnu_debuglink section, had malformed data in the
- section or some other error occured. */
+ section or some other error occurred. */
extern const char *dwelf_elf_gnu_debuglink (Elf *elf, GElf_Word *crc);
/* Returns the name and build ID from the .gnu_debugaltlink section if
@@ -69,7 +69,7 @@ extern ssize_t dwelf_elf_gnu_build_id (Elf *elf, const void **build_idp);
section. The section name should start with .zdebug (but this
isn't checked by this function). If the section isn't compressed
(the section data doesn't start with ZLIB) -1 is returned. If an
- error occured -1 is returned and elf_errno is set. */
+ error occurred -1 is returned and elf_errno is set. */
extern ssize_t dwelf_scn_gnu_compressed_size (Elf_Scn *scn);
/* ELF/DWARF string table handling. */
--
ldv
next prev parent reply other threads:[~2020-12-12 16:51 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-12 16:49 [PATCH 00/12] Fix spelling typos in comments, tests, and text files Dmitry V. Levin
2020-12-12 16:50 ` [PATCH 01/12] debuginfod: fix spelling typos in error diagnostics and comments Dmitry V. Levin
2020-12-12 16:50 ` [PATCH 02/12] backends: fix spelling typos in comments Dmitry V. Levin
2020-12-12 16:50 ` [PATCH 03/12] config: fix spelling typos in comments and %changelog Dmitry V. Levin
2020-12-12 16:50 ` [PATCH 04/12] libasm: fix spelling typos in comments Dmitry V. Levin
2020-12-12 16:50 ` [PATCH 05/12] libcpu: " Dmitry V. Levin
2020-12-12 16:51 ` [PATCH 06/12] libdw: fix spelling typos in comments and ChangeLog Dmitry V. Levin
2020-12-12 16:51 ` Dmitry V. Levin [this message]
2020-12-12 16:51 ` [PATCH 08/12] libdwfl: " Dmitry V. Levin
2020-12-12 16:52 ` [PATCH 09/12] libelf: fix spelling typos in comments Dmitry V. Levin
2020-12-12 16:52 ` [PATCH 10/12] src: fix spelling typos in comments and ChangeLog Dmitry V. Levin
2020-12-12 16:52 ` [PATCH 11/12] tests: fix spelling typos in error diagnostics and comments Dmitry V. Levin
2020-12-12 16:52 ` [PATCH 12/12] Fix spelling typos in NEWS, NOTES, TODO, and in comments of configure.ac Dmitry V. Levin
2020-12-12 17:17 ` [PATCH 00/12] Fix spelling typos in comments, tests, and text files Mark Wielaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201212165114.GG503@altlinux.org \
--to=ldv@altlinux.org \
--cc=elfutils-devel@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).