summaryrefslogtreecommitdiff
path: root/src/alp_driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/alp_driver.c')
-rw-r--r--src/alp_driver.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/alp_driver.c b/src/alp_driver.c
index d296614..4689a52 100644
--- a/src/alp_driver.c
+++ b/src/alp_driver.c
@@ -221,8 +221,8 @@ AlpGetRec(ScrnInfoPtr pScrn)
if (pScrn->driverPrivate != NULL)
return TRUE;
- pScrn->driverPrivate = xnfcalloc(sizeof(CirRec), 1);
- ((CirPtr)pScrn->driverPrivate)->chip.alp = xnfcalloc(sizeof(AlpRec),1);
+ pScrn->driverPrivate = XNFcallocarray(sizeof(CirRec), 1);
+ ((CirPtr)pScrn->driverPrivate)->chip.alp = XNFcallocarray(sizeof(AlpRec),1);
#ifdef ALP_DEBUG
ErrorF("AlpGetRec 0x%x\n", CIRPTR(pScrn));
@@ -957,7 +957,7 @@ AlpPreInit(ScrnInfoPtr pScrn, int flags)
* Setup the ClockRanges, which describe what clock ranges are available,
* and what sort of modes they can be used for.
*/
- clockRanges = xnfcalloc(sizeof(ClockRange), 1);
+ clockRanges = XNFcallocarray(sizeof(ClockRange), 1);
clockRanges->next = NULL;
clockRanges->minClock = pCir->MinClock;
clockRanges->maxClock = pCir->MaxClock;