summaryrefslogtreecommitdiffstats
path: root/tests/elfcopy.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/elfcopy.c')
-rw-r--r--tests/elfcopy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/elfcopy.c b/tests/elfcopy.c
index 4542222e..10b2d362 100644
--- a/tests/elfcopy.c
+++ b/tests/elfcopy.c
@@ -194,7 +194,7 @@ copy_elf (const char *in, const char *out, bool use_mmap, bool reverse_offs)
exit (1);
}
- offs = (GElf_Off *) malloc (shnum * sizeof (GElf_Off));
+ offs = malloc (shnum * sizeof (GElf_Off));
if (offs == NULL)
{
printf ("couldn't allocate memory for offs\n");