summaryrefslogtreecommitdiffstats
path: root/rtemstoolkit/elftoolchain/libelf/elf_rawfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'rtemstoolkit/elftoolchain/libelf/elf_rawfile.c')
-rw-r--r--rtemstoolkit/elftoolchain/libelf/elf_rawfile.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/rtemstoolkit/elftoolchain/libelf/elf_rawfile.c b/rtemstoolkit/elftoolchain/libelf/elf_rawfile.c
index 22a9f95..f63982f 100644
--- a/rtemstoolkit/elftoolchain/libelf/elf_rawfile.c
+++ b/rtemstoolkit/elftoolchain/libelf/elf_rawfile.c
@@ -24,19 +24,17 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
-
#include <libelf.h>
#include "_libelf.h"
-LIBELF_VCSID("$Id: elf_rawfile.c 189 2008-07-20 10:38:08Z jkoshy $");
+ELFTC_VCSID("$Id: elf_rawfile.c 3174 2015-03-27 17:13:41Z emaste $");
char *
elf_rawfile(Elf *e, size_t *sz)
{
- char *ptr;
size_t size;
+ unsigned char *ptr;
size = e ? e->e_rawsize : 0;
ptr = NULL;
@@ -49,5 +47,5 @@ elf_rawfile(Elf *e, size_t *sz)
if (sz)
*sz = size;
- return (ptr);
+ return ((char *) ptr);
}