summaryrefslogtreecommitdiffstats
path: root/elf.c
diff options
context:
space:
mode:
authorJiri Gaisler <jiri@gaisler.se>2019-06-11 09:43:17 +0200
committerJiri Gaisler <jiri@gaisler.se>2019-06-11 09:43:17 +0200
commitad36bf14ca7293a253150f13505b174ca9a5d1ea (patch)
treeeda9b81238e46c4fc0a2219ed4e7135122b6326f /elf.c
parentAdd local copy of elf.h (diff)
downloadsis-ad36bf14ca7293a253150f13505b174ca9a5d1ea.tar.bz2
Silence warnings when compiled with LLVM
Diffstat (limited to 'elf.c')
-rw-r--r--elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf.c b/elf.c
index 6736dcc..2a73ce3 100644
--- a/elf.c
+++ b/elf.c
@@ -51,7 +51,7 @@ read_elf_header (FILE * fp)
efile.fp = fp;
if ((ehdr.e_ident[EI_MAG0] != 0x7f) ||
- strncmp (&ehdr.e_ident[EI_MAG1], "ELF", 3) != 0)
+ strncmp ((char *) &ehdr.e_ident[EI_MAG1], "ELF", 3) != 0)
{
return (-1);
}