Enrico Weigelt, metux IT consult
ea618f9bff
xfree86: replace xallocarray() by calloc()
...
Only key difference that calloc(), in contrast to rellocarray(),
is zero-initializing. The overhead is hard to measure on today's
machines, and it's safer programming practise to always allocate
zero-initialized, so one can't forget to do it explicitly.
Cocci rule:
@@
expression COUNT;
expression LEN;
@@
- xallocarray(COUNT,LEN)
+ calloc(COUNT,LEN)
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-04-02 17:37:14 +00:00
..
2020-07-05 13:07:33 -07:00
2024-07-28 23:26:37 +00:00
2024-02-29 10:27:08 +00:00
2024-02-29 10:27:08 +00:00
2025-02-07 00:39:00 +02:00
2025-02-06 23:51:33 +00:00
2025-02-07 22:40:06 +00:00
2025-02-07 22:40:06 +00:00
2025-04-02 17:37:14 +00:00
2025-02-07 22:40:06 +00:00
2024-10-10 18:25:54 +00:00
2025-02-17 19:41:29 +00:00
2025-02-07 22:40:06 +00:00
2025-04-02 17:37:14 +00:00
2025-02-06 23:51:33 +00:00
2025-02-07 22:40:06 +00:00
2025-02-07 12:00:53 +01:00
2024-04-18 00:40:39 +00:00
2020-07-05 13:07:33 -07:00
2024-01-03 19:43:16 +00:00
2025-02-28 16:41:09 +01:00
2025-02-07 22:40:06 +00:00
2025-02-07 00:38:58 +02:00
2025-02-06 15:51:27 +00:00
2025-02-06 23:09:02 +00:00
2025-02-07 14:46:21 +01:00
2024-04-18 00:40:39 +00:00
2025-02-11 14:52:15 +00:00
2024-10-10 13:56:05 +00:00
2025-02-07 22:40:06 +00:00
2025-02-07 22:40:06 +00:00
2025-02-07 00:38:58 +02:00
2025-02-07 22:40:06 +00:00
2024-10-10 18:25:54 +00:00
2020-12-08 11:23:31 -05:00
2025-02-06 15:51:27 +00:00
2025-02-06 23:51:33 +00:00
2025-04-02 17:37:14 +00:00
2025-02-06 23:51:33 +00:00
2023-10-22 16:08:21 +00:00
2025-02-06 23:51:33 +00:00
2025-02-07 22:40:06 +00:00
2025-02-06 23:51:33 +00:00
2025-02-06 23:51:33 +00:00
2025-02-07 22:40:06 +00:00
2025-02-06 23:51:33 +00:00
2024-07-26 23:51:13 +00:00
2025-04-02 17:37:14 +00:00
2020-07-05 13:07:33 -07:00