From 2d7eaf8a868bbe6d946f31cc58a72cbb2fd0850d Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 8 May 2024 14:23:11 +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/apm_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apm_driver.c b/src/apm_driver.c index eba57bb..d6836aa 100644 --- a/src/apm_driver.c +++ b/src/apm_driver.c @@ -181,7 +181,7 @@ ApmGetRec(ScrnInfoPtr pScrn) { if (pScrn->driverPrivate) return TRUE; - pScrn->driverPrivate = xnfcalloc(sizeof(ApmRec), 1); + pScrn->driverPrivate = XNFcallocarray(sizeof(ApmRec), 1); /* pScrn->driverPrivate != NULL at this point */ return TRUE; @@ -921,7 +921,7 @@ ApmPreInit(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 = (ClockRangePtr)xnfcalloc(sizeof(ClockRange), 1); + clockRanges = (ClockRangePtr)XNFcallocarray(sizeof(ClockRange), 1); clockRanges->next = NULL; clockRanges->minClock = pApm->MinClock; clockRanges->maxClock = pApm->MaxClock; -- cgit v1.2.3