xserver/hw
Enrico Weigelt, metux IT consult ba902d7885 (1823) xnest: 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
..
kdrive (1823) kdrive: replace xallocarray() by calloc() 2025-06-03 11:37:36 +02:00
vfb (1823) xvfb: protect from memory allocation failure 2025-06-03 11:37:36 +02:00
xfree86 (1823) xfree86: protect from memory allocation failure 2025-06-03 11:37:36 +02:00
xnest (1823) xnest: replace xallocarray() by calloc() 2025-06-03 11:37:36 +02:00
xquartz (1841) xquartz: drop unused includes of colormapst.h 2025-06-03 11:37:36 +02:00
xwayland (!1899) dix: add dixResouceIsServerOwned() 2025-06-03 11:37:34 +02:00
xwin (1827) xwin: drop redundant declaration of winValidateArgs() 2025-06-03 11:37:36 +02:00
meson.build meson.build: print a summary of the DDX to build 2025-03-24 03:05:35 +00:00