summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/alp_driver.c6
-rw-r--r--src/lg_driver.c6
2 files changed, 6 insertions, 6 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;
diff --git a/src/lg_driver.c b/src/lg_driver.c
index 0a4c3b5..b08c152 100644
--- a/src/lg_driver.c
+++ b/src/lg_driver.c
@@ -278,9 +278,9 @@ LgGetRec(ScrnInfoPtr pScrn)
if (pScrn->driverPrivate != NULL)
return TRUE;
- pScrn->driverPrivate = xnfcalloc(sizeof(CirRec), 1);
+ pScrn->driverPrivate = XNFcallocarray(sizeof(CirRec), 1);
((CirPtr) pScrn->driverPrivate)->chip.lg =
- xnfcalloc(sizeof(LgRec), 1);
+ XNFcallocarray(sizeof(LgRec), 1);
/*
* Initialize it.
@@ -871,7 +871,7 @@ LgPreInit(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;