diff options
author | Enrico Weigelt, metux IT consult <info@metux.net> | 2024-05-08 14:32:06 +0200 |
---|---|---|
committer | Enrico Weigelt, metux IT consult <info@metux.net> | 2024-05-08 14:32:06 +0200 |
commit | 4b72faa32244112049d05c925637cae0ac9aac82 (patch) | |
tree | da075f01bba477a0a2fb6268d757f42303642367 /src | |
parent | 55a72385a443d7107aa378651c4a5631fe837da6 (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-ast/-/merge_requests/8>
Diffstat (limited to 'src')
-rw-r--r-- | src/ast_driver.c | 4 |
1 files 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; } |