summaryrefslogtreecommitdiff
path: root/src/atidri.c
diff options
context:
space:
mode:
authorEnrico Weigelt, metux IT consult <info@metux.net>2024-05-08 16:03:28 +0200
committerEnrico Weigelt, metux IT consult <info@metux.net>2024-05-08 16:03:28 +0200
commitbae05c30a729c97f9d45943581299459a8c62e4d (patch)
tree0f9685efb454663b620fb18727b5318ac2beb8a9 /src/atidri.c
parent76760525c13b5d659e4a28fb08e89de46ce09e11 (diff)
use XNFcallocarray() instead of xnfcalloc macro
xnfcalloc is just an alias for XNFcallocarray() that doesn't seem to serve any practical purpose, so it can go away once all drivers stopped using it. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-mach64/-/merge_requests/13>
Diffstat (limited to 'src/atidri.c')
-rw-r--r--src/atidri.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/atidri.c b/src/atidri.c
index b6efe66..35cbb99 100644
--- a/src/atidri.c
+++ b/src/atidri.c
@@ -1063,7 +1063,7 @@ Bool ATIDRIScreenInit( ScreenPtr pScreen )
(unsigned)(sizeof(XF86DRISAREARec) + sizeof(ATISAREAPrivRec)) );
pDRIInfo->SAREASize = SAREA_MAX;
- pATIDRI = (ATIDRIPtr) xnfcalloc( sizeof(ATIDRIRec), 1 );
+ pATIDRI = (ATIDRIPtr) XNFcallocarray( sizeof(ATIDRIRec), 1 );
if ( !pATIDRI ) {
DRIDestroyInfoRec( pATI->pDRIInfo );
pATI->pDRIInfo = NULL;
@@ -1072,7 +1072,7 @@ Bool ATIDRIScreenInit( ScreenPtr pScreen )
return FALSE;
}
pATIDRIServer = (ATIDRIServerInfoPtr)
- xnfcalloc( sizeof(ATIDRIServerInfoRec), 1 );
+ XNFcallocarray( sizeof(ATIDRIServerInfoRec), 1 );
if ( !pATIDRIServer ) {
free( pATIDRI );
DRIDestroyInfoRec( pATI->pDRIInfo );