[PATCH] Remove redundant casts of memory allocating functions returning void *
Wed Sep 8 22:10:18 GMT 2021
On Mon, Sep 06, 2021 at 08:00:00AM +0000, Dmitry V. Levin wrote:
> Return values of functions returning "void *", e.g. calloc, malloc,
> realloc, xcalloc, xmalloc, and xrealloc, do not need explicit casts.
This does make the code slightly more readable. And the cast doesn't
really add much useful info. So please apply.
More information about the Elfutils-devel