xserver/hw
Enrico Weigelt, metux IT consult b596d329ec xwayland: 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:44 +02:00
..
kdrive kdrive: replace xallocarray() by calloc() 2025-06-12 17:21:44 +02:00
vfb xvfb: protect from memory allocation failure 2025-06-12 17:21:44 +02:00
xfree86 xfree86: protect from memory allocation failure 2025-06-12 17:21:44 +02:00
xnest xnest: protect from memory allocation failure 2025-06-12 17:21:44 +02:00
xquartz xquartz: drop unused includes of colormapst.h 2025-06-12 17:21:43 +02:00
xwayland xwayland: replace xallocarray() by calloc() 2025-06-12 17:21:44 +02:00
xwin xwin: drop redundant declaration of winValidateArgs() 2025-06-12 17:21:43 +02:00
meson.build meson.build: print a summary of the DDX to build 2025-03-24 03:05:35 +00:00