Enrico Weigelt, metux IT consult
bdcf8d200f
mi: 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-06-12 17:21:43 +02:00
..
2025-02-27 11:53:54 +00:00
2025-06-12 17:21:43 +02:00
2025-02-06 16:45:20 +02:00
2025-06-12 17:21:43 +02:00
2025-06-12 17:21:43 +02:00
2025-06-12 17:21:43 +02:00
2014-07-28 12:20:44 -07:00
2025-06-12 17:21:43 +02:00
2025-02-06 16:45:20 +02:00
2025-06-12 16:45:32 +02:00
2025-06-12 16:20:09 +02:00
2025-06-12 17:21:43 +02:00
2025-06-12 16:49:27 +02:00
2014-10-27 15:45:21 -04:00
2014-11-12 10:25:00 +10:00
2025-02-12 17:48:30 +01:00
2017-02-16 15:10:32 -05:00
2025-06-12 17:21:43 +02:00
2025-06-12 16:47:01 +02:00
2021-01-29 12:52:09 +00:00
2025-02-06 22:18:12 +00:00
2025-06-12 16:49:27 +02:00
2025-02-27 11:53:54 +00:00
2025-02-13 23:53:39 +00:00
2025-06-12 16:49:27 +02:00
2025-02-13 23:53:39 +00:00
2016-06-08 11:36:32 -04:00
2025-06-12 17:21:43 +02:00
2025-06-12 16:31:29 +02:00
2025-06-12 17:21:43 +02:00
2025-06-12 17:21:43 +02:00
2024-10-10 13:38:31 +00:00
2024-10-10 13:38:31 +00:00
2025-06-12 16:49:27 +02:00
2025-06-12 16:49:27 +02:00
2025-06-12 17:21:43 +02:00
2024-10-10 14:44:52 +00:00
2014-11-12 10:25:00 +10:00
2025-06-12 16:47:01 +02:00
2025-06-12 17:21:43 +02:00
2014-10-27 15:45:22 -04:00
2025-06-12 16:47:01 +02:00
2025-06-12 17:21:43 +02:00
2025-02-06 22:18:11 +00:00
2025-06-12 17:21:43 +02:00