From 4b72faa32244112049d05c925637cae0ac9aac82 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 8 May 2024 14:32:06 +0200 Subject: use XNFcallocarray() instead of xnfcalloc macro 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 Part-of: --- src/ast_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ast_driver.c b/src/ast_driver.c index 8bb7f4f..0f078a2 100644 --- a/src/ast_driver.c +++ b/src/ast_driver.c @@ -678,7 +678,7 @@ ASTPreInit(ScrnInfoPtr pScrn, int flags) pScrn->monitor->DDC = ASTDoDDC(pScrn, pAST->pEnt->index); /* Mode Valid */ - clockRanges = xnfcalloc(sizeof(ClockRange), 1); + clockRanges = XNFcallocarray(sizeof(ClockRange), 1); clockRanges->next = NULL; clockRanges->minClock = 9500; clockRanges->maxClock = ASTGetMaxDCLK(pScrn) * 1000; @@ -1253,7 +1253,7 @@ ASTGetRec(ScrnInfoPtr pScrn) if (pScrn->driverPrivate) return TRUE; - pScrn->driverPrivate = xnfcalloc(sizeof(ASTRec), 1); + pScrn->driverPrivate = XNFcallocarray(sizeof(ASTRec), 1); return TRUE; } -- cgit v1.2.3