summaryrefslogtreecommitdiff
path: root/src/r128_probe.c
diff options
context:
space:
mode:
authorEnrico Weigelt, metux IT consult <info@metux.net>2024-05-08 16:31:02 +0200
committerMarge Bot <emma+marge@anholt.net>2024-05-12 17:03:49 +0000
commit965d321ac7600cd4f8fbf340be039dbff5f16ad3 (patch)
tree3a52569496d3eb39ff31ab113ebe3c035269d7ee /src/r128_probe.c
parentf753d699fd2d1832e06d9eb3fd2e706fdb15fa39 (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-r128/-/merge_requests/8>
Diffstat (limited to 'src/r128_probe.c')
-rw-r--r--src/r128_probe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/r128_probe.c b/src/r128_probe.c
index 20546c3..1a4532c 100644
--- a/src/r128_probe.c
+++ b/src/r128_probe.c
@@ -269,7 +269,7 @@ r128_get_scrninfo(int entity_num)
if (!pPriv->ptr) {
R128EntPtr pR128Ent;
- pPriv->ptr = xnfcalloc(sizeof(R128EntRec), 1);
+ pPriv->ptr = XNFcallocarray(sizeof(R128EntRec), 1);
pR128Ent = pPriv->ptr;
pR128Ent->HasSecondary = FALSE;
pR128Ent->IsSecondaryRestored = FALSE;