]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
libdwelf: fix spelling typos in comments
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 12 Dec 2020 16:51:15 +0000 (19:51 +0300)
committerMark Wielaard <mark@klomp.org>
Sat, 12 Dec 2020 17:06:28 +0000 (18:06 +0100)
algorith -> algorithm
occured -> occurred

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
libdwelf/ChangeLog
libdwelf/dwelf_strtab.c
libdwelf/libdwelf.h

index 9d05390c2452087a4b2d803103d647a5ca591cac..a0ff9f4f887ae54c38f512e70129d04eb20c7f73 100644 (file)
@@ -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.
 
index 01e091c875c895358e6f11b2219cce7add262e64..c6ae7cdfe25b89663d5501daf6e6a11502691d6a 100644 (file)
@@ -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)
index dbb8f08cf05403a4723b06e86298a67b5198b420..263ca60e35a0b958683e45c81ad14ee238c3e8db 100644 (file)
@@ -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.  */