xserver/dbe
Enrico Weigelt, metux IT consult 1f4c810baa 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-04-02 17:37:14 +00:00
..
dbe.c dbe: replace xallocarray() by calloc() 2025-04-02 17:37:14 +00:00
dbestruct.h dbe: drop obsolete NEED_DBE_PROTOCOL 2024-02-28 11:29:39 +01:00
meson.build dbe: unexport dbestruct.h 2024-04-23 02:18:02 +00:00
midbe.c dbe: replace xallocarray() by calloc() 2025-04-02 17:37:14 +00:00
midbe.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00