summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Weigelt, metux IT consult <info@metux.net>2024-05-08 17:00:31 +0200
committerEnrico Weigelt, metux IT consult <info@metux.net>2024-05-08 17:00:31 +0200
commit7cd51d90bb76aefc476ebdbb73b01e29c5119eea (patch)
treeb18399ac0337978914e55b44f20e660ac5a2cfbc
parentebd49ed66ad8c90a85df0f4a5986973211b35978 (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-sunleo/-/merge_requests/5>
-rw-r--r--src/leo_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leo_driver.c b/src/leo_driver.c
index 2c1d505..282a579 100644
--- a/src/leo_driver.c
+++ b/src/leo_driver.c
@@ -155,7 +155,7 @@ LeoGetRec(ScrnInfoPtr pScrn)
if (pScrn->driverPrivate != NULL)
return TRUE;
- pScrn->driverPrivate = xnfcalloc(sizeof(LeoRec), 1);
+ pScrn->driverPrivate = XNFcallocarray(sizeof(LeoRec), 1);
return TRUE;
}