[PATCH] Remove redundant casts of memory allocating functions returning void *

Mark Wielaard mark@klomp.org
Wed Sep 8 22:10:18 GMT 2021

Hi Dmitry,

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 mailing list