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

2021-09-08 Thread Mark Wielaard
Hi Dmitry, On Mon, Sep 06, 2021 at 08:00:00AM +, 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

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

2021-09-06 Thread Dmitry V. Levin
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 --- debuginfod/ChangeLog | 5 + debuginfod/debuginfod-client.c | 2 +- lib/ChangeLog| 6