From 4409fc61d874df46a483e348405be1183cfd8c4b Mon Sep 17 00:00:00 2001 From: "mostang.com!davidm" Date: Thu, 27 Mar 2003 00:44:39 +0000 Subject: [PATCH] Patch by Matthieu Delahaye: (lookup_symbol): Fix typo: Elf64_Shdr -> ElfW (Shdr). (get_proc_name): Ditto. (Logical change 1.67) --- src/elfxx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/elfxx.c b/src/elfxx.c index 965275b6..30876cd1 100644 --- a/src/elfxx.c +++ b/src/elfxx.c @@ -122,7 +122,7 @@ elfW (lookup_symbol) (unw_word_t ip, struct elf_image *ei, default: break; } - shdr = (Elf64_Shdr *) (((char *) shdr) + ehdr->e_shentsize); + shdr = (ElfW (Shdr) *) (((char *) shdr) + ehdr->e_shentsize); } if (min_dist >= ei->size) return -UNW_ENOINFO; /* not found */ @@ -152,7 +152,7 @@ elfW (get_proc_name) (pid_t pid, unw_word_t ip, char *buf, size_t buf_len, return ret; ehdr = ei.image; - phdr = (Elf64_Phdr *) ((char *) ei.image + ehdr->e_phoff); + phdr = (ElfW (Phdr) *) ((char *) ei.image + ehdr->e_phoff); for (i = 0; i < ehdr->e_phnum; ++i) if (phdr[i].p_type == PT_LOAD && phdr[i].p_offset == mapoff)