mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-06 12:00:12 +01:00
Use calloc instead of xcalloc.
This commit is contained in:
parent
14ddc4dc2f
commit
2fda3eb35b
1 changed files with 2 additions and 2 deletions
|
|
@ -478,14 +478,14 @@ do { \
|
|||
#define _MAXSCREENSALLOCF(o,size,fatal) \
|
||||
do { \
|
||||
if (!o) { \
|
||||
o = xcalloc((size), sizeof(*(o))); \
|
||||
o = calloc((size), sizeof(*(o))); \
|
||||
if (!o && fatal) FatalError(MAXSCREEN_FAILED_TXT #o); \
|
||||
} \
|
||||
} while (0)
|
||||
#define _MAXSCREENSALLOCR(o,size,retval) \
|
||||
do { \
|
||||
if (!o) { \
|
||||
o = xcalloc((size), sizeof(*(o))); \
|
||||
o = calloc((size), sizeof(*(o))); \
|
||||
if (!o) return retval; \
|
||||
} \
|
||||
} while (0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue