summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Weigelt, metux IT consult <info@metux.net>2024-05-08 16:59:57 +0200
committerEnrico Weigelt, metux IT consult <info@metux.net>2024-05-08 16:59:57 +0200
commit99551f9633a101d6e407d06bc5025877d4fe6ae5 (patch)
treea329e3ce5dc2b52d862b392e6f5f9026eddc2568
parentb56894b531d78d2f7c301503a017bdccd0bf216f (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-suncg6/-/merge_requests/6>
-rw-r--r--src/cg6_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cg6_driver.c b/src/cg6_driver.c
index bab4038..331769c 100644
--- a/src/cg6_driver.c
+++ b/src/cg6_driver.c
@@ -156,7 +156,7 @@ CG6GetRec(ScrnInfoPtr pScrn)
if (pScrn->driverPrivate != NULL)
return TRUE;
- pScrn->driverPrivate = xnfcalloc(sizeof(Cg6Rec), 1);
+ pScrn->driverPrivate = XNFcallocarray(sizeof(Cg6Rec), 1);
return TRUE;
}