aboutsummaryrefslogtreecommitdiff
path: root/contrib/elftoolchain/libelf/libelf_memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/elftoolchain/libelf/libelf_memory.c')
-rw-r--r--contrib/elftoolchain/libelf/libelf_memory.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/elftoolchain/libelf/libelf_memory.c b/contrib/elftoolchain/libelf/libelf_memory.c
index cb8e8f20438a..892e909b079c 100644
--- a/contrib/elftoolchain/libelf/libelf_memory.c
+++ b/contrib/elftoolchain/libelf/libelf_memory.c
@@ -31,7 +31,7 @@
#include "_libelf.h"
-ELFTC_VCSID("$Id: libelf_memory.c 3013 2014-03-23 06:16:59Z jkoshy $");
+ELFTC_VCSID("$Id: libelf_memory.c 2368 2011-12-29 06:34:28Z jkoshy $");
/*
* Create an ELF descriptor for a memory image, optionally reporting
@@ -39,7 +39,7 @@ ELFTC_VCSID("$Id: libelf_memory.c 3013 2014-03-23 06:16:59Z jkoshy $");
*/
Elf *
-_libelf_memory(unsigned char *image, size_t sz, int reporterror)
+_libelf_memory(char *image, size_t sz, int reporterror)
{
Elf *e;
int e_class;
@@ -89,7 +89,7 @@ _libelf_memory(unsigned char *image, size_t sz, int reporterror)
e->e_version = e_version;
}
} else if (sz >= SARMAG &&
- strncmp((const char *) image, ARMAG, (size_t) SARMAG) == 0)
+ strncmp(image, ARMAG, (size_t) SARMAG) == 0)
return (_libelf_ar_open(e, reporterror));
return (e);