From dc0167e2dd55857c0fcd3fa5813dc67ea989b8f6 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 8 May 2024 15:43:09 +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/dummy_driver.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dummy_driver.c b/src/dummy_driver.c index 1764a1f..d2fdc1d 100644 --- a/src/dummy_driver.c +++ b/src/dummy_driver.c @@ -271,7 +271,7 @@ dummy_output_get_modes (xf86OutputPtr output) /* copy modes from config */ for (pModeSrc = output->scrn->modes; pModeSrc; pModeSrc = pModeSrc->next) { - pMode = xnfcalloc(1, sizeof(DisplayModeRec)); + pMode = XNFcallocarray(1, sizeof(DisplayModeRec)); memcpy(pMode, pModeSrc, sizeof(DisplayModeRec)); pMode->next = NULL; pMode->prev = NULL; @@ -448,7 +448,7 @@ DUMMYGetRec(ScrnInfoPtr pScrn) if (pScrn->driverPrivate != NULL) return TRUE; - pScrn->driverPrivate = xnfcalloc(sizeof(DUMMYRec), 1); + pScrn->driverPrivate = XNFcallocarray(sizeof(DUMMYRec), 1); if (pScrn->driverPrivate == NULL) return FALSE; @@ -651,7 +651,7 @@ DUMMYPreInit(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->ClockMulFactor = 1; clockRanges->minClock = 11000; /* guessed ยงยงยง */ -- cgit v1.2.3