summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ffb_dga.c2
-rw-r--r--src/ffb_driver.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ffb_dga.c b/src/ffb_dga.c
index d6f5437..d095570 100644
--- a/src/ffb_dga.c
+++ b/src/ffb_dga.c
@@ -74,7 +74,7 @@ void FFB_InitDGA(ScreenPtr pScreen)
pFfb = GET_FFB_FROM_SCRN(pScrn);
- mode = xnfcalloc(sizeof(DGAModeRec), 1);
+ mode = XNFcallocarray(sizeof(DGAModeRec), 1);
if (!mode) {
xf86Msg(X_WARNING, "%s: DGA init failed, cannot alloc DGAMode.\n",
pFfb->psdp->device);
diff --git a/src/ffb_driver.c b/src/ffb_driver.c
index 5750600..f63fbce 100644
--- a/src/ffb_driver.c
+++ b/src/ffb_driver.c
@@ -157,7 +157,7 @@ FFBGetRec(ScrnInfoPtr pScrn)
if (pScrn->driverPrivate != NULL)
return TRUE;
- pScrn->driverPrivate = xnfcalloc(sizeof(FFBRec), 1);
+ pScrn->driverPrivate = XNFcallocarray(sizeof(FFBRec), 1);
return TRUE;
}