summaryrefslogtreecommitdiff
path: root/src/apm_driver.c
diff options
context:
space:
mode:
authorEnrico Weigelt, metux IT consult <info@metux.net>2024-05-08 14:23:11 +0200
committerEnrico Weigelt, metux IT consult <info@metux.net>2024-05-08 14:23:11 +0200
commit2d7eaf8a868bbe6d946f31cc58a72cbb2fd0850d (patch)
tree462736bf5b10290d80666b256738da1899a534d1 /src/apm_driver.c
parentba1f9b21646164df1043cc16612bed99241a5fba (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-apm/-/merge_requests/6>
Diffstat (limited to 'src/apm_driver.c')
-rw-r--r--src/apm_driver.c4
1 files 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;