summaryrefslogtreecommitdiffstats
path: root/libdwfl/argp-std.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdwfl/argp-std.c')
-rw-r--r--libdwfl/argp-std.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libdwfl/argp-std.c b/libdwfl/argp-std.c
index ce2e20a4..e598c6ef 100644
--- a/libdwfl/argp-std.c
+++ b/libdwfl/argp-std.c
@@ -1,5 +1,5 @@
/* Standard argp argument parsers for tools using libdwfl.
- Copyright (C) 2005, 2007, 2008, 2009 Red Hat, Inc.
+ Copyright (C) 2005-2010 Red Hat, Inc.
This file is part of Red Hat elfutils.
Red Hat elfutils is free software; you can redistribute it and/or modify
@@ -225,9 +225,7 @@ parse_opt (int key, char *arg, struct argp_state *state)
return error == DWFL_E_ERRNO ? errno : EIO;
}
- GElf_Ehdr ehdr;
- int result = INTUSE(dwfl_core_file_report) (dwfl, core,
- gelf_getehdr (core, &ehdr));
+ int result = INTUSE(dwfl_core_file_report) (dwfl, core);
if (result < 0)
{
elf_end (core);