summaryrefslogtreecommitdiffstats
path: root/libdwfl/open.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdwfl/open.c')
-rw-r--r--libdwfl/open.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libdwfl/open.c b/libdwfl/open.c
index 03e66dfa..e66595fb 100644
--- a/libdwfl/open.c
+++ b/libdwfl/open.c
@@ -148,12 +148,12 @@ libdw_open_elf (int *fdp, Elf **elfp, bool close_on_fail, bool archive_ok,
{
/* Pure evil. libelf needs some better interfaces. */
elf->kind = ELF_K_AR;
- elf->state.ar.elf_ar_hdr.ar_name = "libdwfl is faking you out";
- elf->state.ar.elf_ar_hdr.ar_size = elf->maximum_size - offset;
+ elf->state.ar.cur_ar_hdr.ar_name = "libdwfl is faking you out";
+ elf->state.ar.cur_ar_hdr.ar_size = elf->maximum_size - offset;
elf->state.ar.offset = offset - sizeof (struct ar_hdr);
Elf *subelf = elf_begin (-1, elf->cmd, elf);
elf->kind = ELF_K_NONE;
- elf->state.ar.elf_ar_hdr.ar_name = NULL;
+ elf->state.ar.cur_ar_hdr.ar_name = NULL;
if (unlikely (subelf == NULL))
error = DWFL_E_LIBELF;
else