From 14ef9c185b79f55f8221a29accd8d3326367102a Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Fri, 11 Dec 2020 02:00:00 +0000 Subject: treewide: fix incorrect spelling of indices in comments Replace 'indeces' with 'indices', the most annoying of these typos were those found in elf.h which is a public header file copied to other projects. --- elf/dl-version.c | 2 +- elf/elf.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'elf') diff --git a/elf/dl-version.c b/elf/dl-version.c index 0f8bdcdb53..6e28221c9d 100644 --- a/elf/dl-version.c +++ b/elf/dl-version.c @@ -247,7 +247,7 @@ _dl_check_map_versions (struct link_map *map, int verbose, int trace_mode) the maximum index here as well. XXX We could avoid the loop by just taking the number of definitions - as an upper bound of new indeces. */ + as an upper bound of new indices. */ if (def != NULL) { ElfW(Verdef) *ent; diff --git a/elf/elf.h b/elf/elf.h index bd7af7cca4..93994cef2b 100644 --- a/elf/elf.h +++ b/elf/elf.h @@ -441,7 +441,7 @@ typedef struct #define SHT_FINI_ARRAY 15 /* Array of destructors */ #define SHT_PREINIT_ARRAY 16 /* Array of pre-constructors */ #define SHT_GROUP 17 /* Section group */ -#define SHT_SYMTAB_SHNDX 18 /* Extended section indeces */ +#define SHT_SYMTAB_SHNDX 18 /* Extended section indices */ #define SHT_NUM 19 /* Number of defined types. */ #define SHT_LOOS 0x60000000 /* Start OS-specific. */ #define SHT_GNU_ATTRIBUTES 0x6ffffff5 /* Object attributes. */ @@ -2141,7 +2141,7 @@ enum #define EFA_PARISC_1_1 0x0210 /* PA-RISC 1.1 big-endian. */ #define EFA_PARISC_2_0 0x0214 /* PA-RISC 2.0 big-endian. */ -/* Additional section indeces. */ +/* Additional section indices. */ #define SHN_PARISC_ANSI_COMMON 0xff00 /* Section for tenatively declared symbols in ANSI C. */ -- cgit 1.4.1