Rename several arguments in ltrace-elf.c for consistency
- In struct ltelf, we call the corresponding argument foo_count.
Rename these arguments from size to count for consistency.
diff --git a/ltrace-elf.c b/ltrace-elf.c
index c9caf56..93e0d5e 100644
--- a/ltrace-elf.c
+++ b/ltrace-elf.c
@@ -669,7 +669,7 @@
static int
populate_this_symtab(struct process *proc, const char *filename,
struct ltelf *lte, struct library *lib,
- Elf_Data *symtab, const char *strtab, size_t size,
+ Elf_Data *symtab, const char *strtab, size_t count,
struct library_exported_name **names)
{
/* If a valid NAMES is passed, we pass in *NAMES a list of
@@ -681,7 +681,7 @@
* should be well enough for the number of symbols that we
* typically deal with. */
size_t num_symbols = 0;
- struct unique_symbol *symbols = malloc(sizeof(*symbols) * size);
+ struct unique_symbol *symbols = malloc(sizeof(*symbols) * count);
if (symbols == NULL) {
fprintf(stderr, "couldn't insert symbols for -x: %s\n",
strerror(errno));
@@ -699,7 +699,7 @@
secflags[i] = shdr.sh_flags;
}
- for (i = 0; i < size; ++i) {
+ for (i = 0; i < count; ++i) {
GElf_Sym sym;
if (gelf_getsym(symtab, i, &sym) == NULL) {
fail: