summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Weigelt, metux IT consult <info@metux.net>2024-05-08 17:01:06 +0200
committerEnrico Weigelt, metux IT consult <info@metux.net>2024-05-08 17:01:06 +0200
commita4f01ddfa23208efa518aa7c0b73f063f16ce758 (patch)
treee2be7b8d0fd9f4f19aea043194be471995e0bd70
parent03ea7ccd154fcf99fd8e79eccc784ff6ae304077 (diff)
use XNFcallocarray() instead of xnfcalloc macroHEADmaster
xnfcalloc is just an alias for XNFcallocarray() that doesn't seem to serve any practical purpose, so it can go away once all drivers stopped using it. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-tdfx/-/merge_requests/6>
-rw-r--r--src/tdfx_driver.c4
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;