summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Weigelt, metux IT consult <info@metux.net>2024-05-08 16:59:37 +0200
committerEnrico Weigelt, metux IT consult <info@metux.net>2024-05-08 16:59:37 +0200
commit0fc0f38371d45f7632f2291b8f0ec4160267e13a (patch)
tree838136babe14d7c5d3d6407d872c65d17d003ee6
parentaaca346d99200f80d3fa6af0bb34754e923b2430 (diff)
use XNFcallocarray() instead of xnfcalloc macroHEADmaster
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-suncg3/-/merge_requests/6>
-rw-r--r--src/cg3_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cg3_driver.c b/src/cg3_driver.c
index ee6ec72..0f7a4b9 100644
--- a/src/cg3_driver.c
+++ b/src/cg3_driver.c
@@ -146,7 +146,7 @@ CG3GetRec(ScrnInfoPtr pScrn)
if (pScrn->driverPrivate != NULL)
return TRUE;
- pScrn->driverPrivate = xnfcalloc(sizeof(Cg3Rec), 1);
+ pScrn->driverPrivate = XNFcallocarray(sizeof(Cg3Rec), 1);
return TRUE;
}