diff options
-rw-r--r-- | src/tdfx_driver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tdfx_driver.c b/src/tdfx_driver.c index 4f8756a..a688a8f 100644 --- a/src/tdfx_driver.c +++ b/src/tdfx_driver.c @@ -299,7 +299,7 @@ static TDFXPtr TDFXGetRec(ScrnInfoPtr pScrn) { if (pScrn->driverPrivate == NULL) { - pScrn->driverPrivate = xnfcalloc(sizeof(TDFXRec), 1); + pScrn->driverPrivate = XNFcallocarray(sizeof(TDFXRec), 1); } return (TDFXPtr) pScrn->driverPrivate; @@ -1077,7 +1077,7 @@ TDFXPreInit(ScrnInfoPtr pScrn, int flags) } #endif } - clockRanges = xnfcalloc(sizeof(ClockRange), 1); + clockRanges = XNFcallocarray(sizeof(ClockRange), 1); clockRanges->next=NULL; clockRanges->minClock= 12000; /* !!! What's the min clock? !!! */ clockRanges->maxClock=pTDFX->MaxClock; |