summaryrefslogtreecommitdiff
path: root/ext/fileinfo/libmagic/elfclass.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fileinfo/libmagic/elfclass.h')
-rw-r--r--ext/fileinfo/libmagic/elfclass.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/ext/fileinfo/libmagic/elfclass.h b/ext/fileinfo/libmagic/elfclass.h
index 27817d0fef..7f6d8adce6 100644
--- a/ext/fileinfo/libmagic/elfclass.h
+++ b/ext/fileinfo/libmagic/elfclass.h
@@ -35,7 +35,7 @@
switch (type) {
#ifdef ELFCORE
case ET_CORE:
- if (dophn_core(ms, clazz, swap, fd,
+ if (dophn_core(ms, class, swap, fd,
(off_t)elf_getu(swap, elfhdr.e_phoff),
elf_getu16(swap, elfhdr.e_phnum),
(size_t)elf_getu16(swap, elfhdr.e_phentsize),
@@ -45,21 +45,19 @@
#endif
case ET_EXEC:
case ET_DYN:
- if (dophn_exec(ms, clazz, swap, fd,
+ if (dophn_exec(ms, class, swap, fd,
(off_t)elf_getu(swap, elfhdr.e_phoff),
elf_getu16(swap, elfhdr.e_phnum),
(size_t)elf_getu16(swap, elfhdr.e_phentsize),
- fsize, &flags, elf_getu16(swap, elfhdr.e_shnum))
- == -1)
+ fsize, &flags) == -1)
return -1;
/*FALLTHROUGH*/
case ET_REL:
- if (doshn(ms, clazz, swap, fd,
+ if (doshn(ms, class, swap, fd,
(off_t)elf_getu(swap, elfhdr.e_shoff),
elf_getu16(swap, elfhdr.e_shnum),
(size_t)elf_getu16(swap, elfhdr.e_shentsize),
- &flags,
- elf_getu16(swap, elfhdr.e_machine)) == -1)
+ &flags) == -1)
return -1;
break;