summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Weigelt, metux IT consult <info@metux.net>2024-05-08 16:36:28 +0200
committerEnrico Weigelt, metux IT consult <info@metux.net>2024-05-08 16:36:28 +0200
commitb47b0a666b1efde725fefbccc8ea1c0590f72e09 (patch)
tree12c05468d6e0da392170f5f4f791296d1c0dcf6b
parentb980bd21d4fc16c5e3f42ce84dc0ff12b48eeebf (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-savage/-/merge_requests/9>
-rw-r--r--src/savage_driver.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/savage_driver.c b/src/savage_driver.c
index 4c037fd..5a7412f 100644
--- a/src/savage_driver.c
+++ b/src/savage_driver.c
@@ -641,7 +641,7 @@ static Bool SavageGetRec(ScrnInfoPtr pScrn)
if (pScrn->driverPrivate)
return TRUE;
- pScrn->driverPrivate = xnfcalloc(sizeof(SavageRec), 1);
+ pScrn->driverPrivate = XNFcallocarray(sizeof(SavageRec), 1);
return TRUE;
}
@@ -732,7 +732,7 @@ static Bool SavagePciProbe(DriverPtr drv, int entity_num,
for (j = 0; j < instance; j++)
xf86SetEntityInstanceForScreen(pScrn, pEnt->index, j);
- pPriv->ptr = xnfcalloc(sizeof(SavageEntRec), 1);
+ pPriv->ptr = XNFcallocarray(sizeof(SavageEntRec), 1);
pSavageEnt = pPriv->ptr;
pSavageEnt->HasSecondary = FALSE;
} else {
@@ -842,7 +842,7 @@ static Bool SavageProbe(DriverPtr drv, int flags)
for (j = 0; j < instance; j++)
xf86SetEntityInstanceForScreen(pScrn, pEnt->index, j);
- pPriv->ptr = xnfcalloc(sizeof(SavageEntRec), 1);
+ pPriv->ptr = XNFcallocarray(sizeof(SavageEntRec), 1);
pSavageEnt = pPriv->ptr;
pSavageEnt->HasSecondary = FALSE;
} else {