diff options
author | Enrico Weigelt, metux IT consult <info@metux.net> | 2024-05-08 16:03:28 +0200 |
---|---|---|
committer | Enrico Weigelt, metux IT consult <info@metux.net> | 2024-05-08 16:03:28 +0200 |
commit | bae05c30a729c97f9d45943581299459a8c62e4d (patch) | |
tree | 0f9685efb454663b620fb18727b5318ac2beb8a9 /src/atidri.c | |
parent | 76760525c13b5d659e4a28fb08e89de46ce09e11 (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.c | 4 |
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 ); |