summaryrefslogtreecommitdiff
path: root/src/atipreinit.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/atipreinit.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/atipreinit.c')
-rw-r--r--src/atipreinit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/atipreinit.c b/src/atipreinit.c
index 96ec68f..7281f19 100644
--- a/src/atipreinit.c
+++ b/src/atipreinit.c
@@ -63,7 +63,7 @@ static Bool
Mach64GetRec(ScrnInfoPtr pScrn)
{
if (!pScrn->driverPrivate) {
- pScrn->driverPrivate = xnfcalloc(sizeof(ATIRec), 1);
+ pScrn->driverPrivate = XNFcallocarray(sizeof(ATIRec), 1);
memset(pScrn->driverPrivate, 0, sizeof(ATIRec));
}
@@ -2302,7 +2302,7 @@ ATIPreInit
* Add a mode to the end of the monitor's list for the panel's
* native resolution.
*/
- pMode = (DisplayModePtr)xnfcalloc(1, SizeOf(DisplayModeRec));
+ pMode = (DisplayModePtr)XNFcallocarray(1, SizeOf(DisplayModeRec));
pMode->name = "Native panel mode";
pMode->type = M_T_BUILTIN;
pMode->Clock = pATI->LCDClock;