xserver/miext
Enrico Weigelt, metux IT consult a80d0488bd (1823) miext: 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-03 11:37:36 +02:00
..
damage (1823) miext: replace xallocarray() by calloc() 2025-06-03 11:37:36 +02:00
rootless (1841) dix: move ColormapRec declaration out of public header 2025-06-03 11:37:36 +02:00
shadow (!1909) miext: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
sync (!1937) miext: sync: drop useless CloseScreen wrapping 2025-06-03 11:37:32 +02:00