summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/s3v_driver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/s3v_driver.c b/src/s3v_driver.c
index 6f14c76..78cbf93 100644
--- a/src/s3v_driver.c
+++ b/src/s3v_driver.c
@@ -371,7 +371,7 @@ S3VGetRec(ScrnInfoPtr pScrn)
if (pScrn->driverPrivate != NULL)
return TRUE;
- pScrn->driverPrivate = xnfcalloc(sizeof(S3VRec), 1);
+ pScrn->driverPrivate = XNFcallocarray(sizeof(S3VRec), 1);
/* Initialise it here when needed (or possible) */
return TRUE;
@@ -1220,7 +1220,7 @@ S3VPreInit(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 = 10000;
if (ps3v->Chipset == S3_ViRGE_VX )