summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libelf/ChangeLog4
-rw-r--r--libelf/gelf_getauxv.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/libelf/ChangeLog b/libelf/ChangeLog
index 46d4731c..c8670108 100644
--- a/libelf/ChangeLog
+++ b/libelf/ChangeLog
@@ -1,3 +1,7 @@
+2013-08-27 Mark Wielaard <[email protected]>
+
+ * gelf_getauxv.c (gelf_getauxv): Remove unnecessary casts to char *.
+
2013-08-25 Kurt Roeckx <[email protected]>
* gelf_getauxv.c (gelf_getauxv): Use memcpy instead of pointer
diff --git a/libelf/gelf_getauxv.c b/libelf/gelf_getauxv.c
index 2a5b6f06..6b910307 100644
--- a/libelf/gelf_getauxv.c
+++ b/libelf/gelf_getauxv.c
@@ -97,7 +97,7 @@ gelf_getauxv (data, ndx, dst)
goto out;
}
- memcpy(dst, (char *) data_scn->d.d_buf + ndx * sizeof (GElf_auxv_t),
+ memcpy(dst, data_scn->d.d_buf + ndx * sizeof (GElf_auxv_t),
sizeof (GElf_auxv_t));
}