summaryrefslogtreecommitdiff
path: root/usr.sbin/kldxref/ef.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2002-04-11 09:30:15 +0000
committerPeter Wemm <peter@FreeBSD.org>2002-04-11 09:30:15 +0000
commitf23aa297ee7cc7af6fb8964d868a0ba059e83195 (patch)
tree8d71150d38b125616cb499b29a3a7db228fcceac /usr.sbin/kldxref/ef.c
parent2aa6b9729818b83feee56beac8128de23c191bfc (diff)
Notes
Diffstat (limited to 'usr.sbin/kldxref/ef.c')
-rw-r--r--usr.sbin/kldxref/ef.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/kldxref/ef.c b/usr.sbin/kldxref/ef.c
index 74b1b0967a79..4437effcfbe8 100644
--- a/usr.sbin/kldxref/ef.c
+++ b/usr.sbin/kldxref/ef.c
@@ -148,7 +148,7 @@ int
ef_parse_dynamic(elf_file_t ef)
{
Elf_Dyn *dp;
- Elf_Off hashhdr[2];
+ Elf_Hashelt hashhdr[2];
/* int plttype = DT_REL;*/
int error;
@@ -165,7 +165,7 @@ ef_parse_dynamic(elf_file_t ef)
ef->ef_nbuckets = hashhdr[0];
ef->ef_nchains = hashhdr[1];
error = ef_read_entry(ef, -1,
- (hashhdr[0] + hashhdr[1]) * sizeof(Elf_Off),
+ (hashhdr[0] + hashhdr[1]) * sizeof(Elf_Hashelt),
(void**)&ef->ef_hashtab);
if (error) {
warnx("can't read hash table");