diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2021-09-06 08:00:00 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2021-09-09 08:01:00 +0000 |
commit | e094270980f1ca8af86a64cee0dbb6f1df670619 (patch) | |
tree | 1471f9586bb9e3d7f5448001353d47e94145a4ae /libebl | |
parent | 02b05e183998943dd5a19ba783b8793e2ab9ab44 (diff) | |
download | elfutils-e094270980f1ca8af86a64cee0dbb6f1df670619.tar.gz |
Remove redundant casts of memory allocating functions returning void *
Return values of functions returning "void *", e.g. calloc, malloc,
realloc, xcalloc, xmalloc, and xrealloc, do not need explicit casts.
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Diffstat (limited to 'libebl')
-rw-r--r-- | libebl/ChangeLog | 4 | ||||
-rw-r--r-- | libebl/eblopenbackend.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/libebl/ChangeLog b/libebl/ChangeLog index fff66b3e..da690a40 100644 --- a/libebl/ChangeLog +++ b/libebl/ChangeLog @@ -1,3 +1,7 @@ +2021-09-06 Dmitry V. Levin <ldv@altlinux.org> + + * eblopenbackend.c (openbackend): Remove cast of calloc return value. + 2021-04-19 Martin Liska <mliska@suse.cz> * eblobjnotetypename.c (ebl_object_note_type_name): Use startswith. diff --git a/libebl/eblopenbackend.c b/libebl/eblopenbackend.c index 71fafed7..0c07296c 100644 --- a/libebl/eblopenbackend.c +++ b/libebl/eblopenbackend.c @@ -274,7 +274,7 @@ openbackend (Elf *elf, const char *emulation, GElf_Half machine) /* First allocate the data structure for the result. We do this here since this assures that the structure is always large enough. */ - result = (Ebl *) calloc (1, sizeof (Ebl)); + result = calloc (1, sizeof (Ebl)); if (result == NULL) { // XXX uncomment |