Alejandro Colomar bddcd9b095 Remove superfluous casts
-  Every non-const pointer converts automatically to void *.
-  Every pointer converts automatically to void *.
-  void * converts to any other pointer.
-  const void * converts to any other const pointer.
-  Integer variables convert to each other.

I changed the declaration of a few variables in order to allow removing
a cast.

However, I didn't attempt to edit casts inside comparisons, since they
are very delicate.  I also kept casts in variadic functions, since they
are necessary, and in allocation functions, because I have other plans
for them.

I also changed a few casts to int that are better as ptrdiff_t.

This change has triggered some warnings about const correctness issues,
which have also been fixed in this patch (see for example src/login.c).

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2023-02-09 10:03:03 -06:00
..
2023-02-01 09:10:34 +01:00
2023-02-09 10:03:03 -06:00
2022-12-29 13:58:49 -06:00
2021-12-23 19:36:50 -06:00
2021-12-23 19:36:50 -06:00
2023-02-09 10:03:03 -06:00
2021-12-23 19:36:50 -06:00
2023-02-09 10:03:03 -06:00
2023-02-09 10:03:03 -06:00
2023-02-09 10:03:03 -06:00
2023-02-09 10:03:03 -06:00
2021-12-23 19:36:50 -06:00
2021-12-23 19:36:50 -06:00
2021-12-23 19:36:50 -06:00
2023-02-09 10:03:03 -06:00
2021-12-23 19:36:50 -06:00
2021-12-23 19:36:50 -06:00
2023-02-09 10:03:03 -06:00
2022-12-22 11:43:29 +01:00
2022-12-22 11:43:29 +01:00
2023-02-09 10:03:03 -06:00
2021-12-23 19:36:50 -06:00
2022-12-22 11:43:29 +01:00
2022-05-24 07:49:11 -05:00
2023-02-09 10:03:03 -06:00
2021-12-23 19:36:50 -06:00
2022-09-27 16:52:06 +02:00
2022-05-24 07:49:11 -05:00
2022-05-24 07:49:11 -05:00
2022-12-22 11:43:29 +01:00
2022-12-22 11:43:29 +01:00
2023-02-02 13:08:30 -06:00
2022-12-22 11:43:29 +01:00
2023-02-09 10:03:03 -06:00
2021-12-23 19:36:50 -06:00
2023-02-09 10:03:03 -06:00
2023-02-09 10:03:03 -06:00
2021-12-23 19:36:50 -06:00
2023-01-26 22:44:39 -06:00
2022-09-27 16:52:06 +02:00
2022-12-22 11:43:29 +01:00
2023-02-09 10:03:03 -06:00
2023-02-09 10:03:03 -06:00
2010-03-18 19:23:00 +00:00