projects
/
ctfdump
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1bd258
)
Do not complain when dumping a raw CTF file
author
Martin Pieuchot
<mpi@openbsd.org>
Wed, 16 Mar 2016 18:32:52 +0000
(19:32 +0100)
committer
Martin Pieuchot
<mpi@openbsd.org>
Wed, 16 Mar 2016 18:32:52 +0000
(19:32 +0100)
ctfdump.c
patch
|
blob
|
blame
|
history
diff --git
a/ctfdump.c
b/ctfdump.c
index 8dfc3343b62a2189c71602f75478917882b401c4..ef632dd0af9b2db72fc3e2cb5afc4f4ee15e80b4 100644
(file)
--- a/
ctfdump.c
+++ b/
ctfdump.c
@@
-165,10
+165,9
@@
iself(const char *p, size_t filesize)
{
Elf_Ehdr *eh = (Elf_Ehdr *)p;
- if (eh->e_ehsize < sizeof(Elf_Ehdr) || !IS_ELF(*eh)) {
- warnx("file is not ELF");
+ if (eh->e_ehsize < sizeof(Elf_Ehdr) || !IS_ELF(*eh))
return 0;
- }
+
if (eh->e_ident[EI_CLASS] != ELFCLASS) {
warnx("unexpected word size %u", eh->e_ident[EI_CLASS]);
return 0;