xserver/record
Enrico Weigelt, metux IT consult aa654de98b (1823) record: 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-05-22 17:34:59 +02:00
..
meson.build Add a Meson build system alongside autotools. 2017-04-26 15:25:27 -07:00
record.c (1823) record: replace xallocarray() by calloc() 2025-05-22 17:34:59 +02:00
set.c (1823) record: replace xallocarray() by calloc() 2025-05-22 17:34:59 +02:00
set.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00