xserver/hw/kdrive/src
Enrico Weigelt, metux IT consult 3e7eea1f76 (1823) kdrive: 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
..
kcmap.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
kdrive.c (!1946) kdrive: drop obsolete ifndef PHOENIX 2025-06-03 11:37:32 +02:00
kdrive.h (1841) dix: move ColormapRec declaration out of public header 2025-06-03 11:37:36 +02:00
kinfo.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
kinput.c include: move out private definitions from hotplug.h 2025-02-06 16:24:00 +01:00
kshadow.c (1823) kdrive: replace xallocarray() by calloc() 2025-06-03 11:37:36 +02:00
kxv.c (!1909) kdrive: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
kxv.h (!1714) kdrive: xv: use window destructor hook 2025-06-03 11:37:32 +02:00
meson.build mi: List extensions in usage message 2021-01-29 12:52:09 +00:00