xserver/dbe
Enrico Weigelt, metux IT consult 273baf9956 (1823) dbe: 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
..
dbe.c (1823) dbe: replace xallocarray() by calloc() 2025-06-03 11:37:36 +02:00
dbestruct.h (!1714) dbe: use window position notify hook 2025-06-03 11:37:32 +02:00
meson.build dbe: unexport dbestruct.h 2024-04-23 02:18:02 +00:00
midbe.c (1823) dbe: replace xallocarray() by calloc() 2025-06-03 11:37:36 +02:00
midbe.h (!1714) dbe: use window position notify hook 2025-06-03 11:37:32 +02:00