diff options
Diffstat (limited to 'src/apm_driver.c')
-rw-r--r-- | src/apm_driver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/apm_driver.c b/src/apm_driver.c index eba57bb..d6836aa 100644 --- a/src/apm_driver.c +++ b/src/apm_driver.c @@ -181,7 +181,7 @@ ApmGetRec(ScrnInfoPtr pScrn) { if (pScrn->driverPrivate) return TRUE; - pScrn->driverPrivate = xnfcalloc(sizeof(ApmRec), 1); + pScrn->driverPrivate = XNFcallocarray(sizeof(ApmRec), 1); /* pScrn->driverPrivate != NULL at this point */ return TRUE; @@ -921,7 +921,7 @@ ApmPreInit(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 = (ClockRangePtr)xnfcalloc(sizeof(ClockRange), 1); + clockRanges = (ClockRangePtr)XNFcallocarray(sizeof(ClockRange), 1); clockRanges->next = NULL; clockRanges->minClock = pApm->MinClock; clockRanges->maxClock = pApm->MaxClock; |