diff options
author | Enrico Weigelt, metux IT consult <info@metux.net> | 2024-05-08 15:43:09 +0200 |
---|---|---|
committer | Enrico Weigelt, metux IT consult <info@metux.net> | 2024-05-08 15:43:09 +0200 |
commit | dc0167e2dd55857c0fcd3fa5813dc67ea989b8f6 (patch) | |
tree | 3962e977e99e6a6b3a7995f787beb89b987a1c96 | |
parent | 130321a4fef9be61b1f0d733e71663f415c9d475 (diff) |
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 <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-dummy/-/merge_requests/9>
-rw-r--r-- | src/dummy_driver.c | 6 |
1 files 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 ยงยงยง */ |