diff options
| author | Dmitry V. Levin <[email protected]> | 2021-09-06 08:00:00 +0000 |
|---|---|---|
| committer | Dmitry V. Levin <[email protected]> | 2021-09-09 08:01:00 +0000 |
| commit | e094270980f1ca8af86a64cee0dbb6f1df670619 (patch) | |
| tree | 1471f9586bb9e3d7f5448001353d47e94145a4ae /libelf/common.h | |
| parent | 02b05e183998943dd5a19ba783b8793e2ab9ab44 (diff) | |
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 <[email protected]>
Diffstat (limited to 'libelf/common.h')
| -rw-r--r-- | libelf/common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libelf/common.h b/libelf/common.h index e41c717d..3718b3fd 100644 --- a/libelf/common.h +++ b/libelf/common.h @@ -71,7 +71,7 @@ __attribute__ ((unused)) allocate_elf (int fildes, void *map_address, int64_t offset, size_t maxsize, Elf_Cmd cmd, Elf *parent, Elf_Kind kind, size_t extra) { - Elf *result = (Elf *) calloc (1, sizeof (Elf) + extra); + Elf *result = calloc (1, sizeof (Elf) + extra); if (result == NULL) __libelf_seterrno (ELF_E_NOMEM); else |
