summaryrefslogtreecommitdiff
path: root/src/driver.c
diff options
context:
space:
mode:
authorEnrico Weigelt, metux IT consult <info@metux.net>2024-05-08 16:17:48 +0200
committerEnrico Weigelt, metux IT consult <info@metux.net>2024-05-08 16:17:48 +0200
commit525e7c3eb2eda75bb3f829896c41c46cb5a47019 (patch)
tree103279306dd342e840068da1bff5d867a3a35af9 /src/driver.c
parentebf3e47c68089d7af6fb6971bdd33185ba83678c (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-nested/-/merge_requests/4>
Diffstat (limited to 'src/driver.c')
-rw-r--r--src/driver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/driver.c b/src/driver.c
index 67eab71..a7a4c1a 100644
--- a/src/driver.c
+++ b/src/driver.c
@@ -280,7 +280,7 @@ static Bool NestedAllocatePrivate(ScrnInfoPtr pScrn) {
return FALSE;
}
- pScrn->driverPrivate = xnfcalloc(sizeof(NestedPrivate), 1);
+ pScrn->driverPrivate = XNFcallocarray(sizeof(NestedPrivate), 1);
if (pScrn->driverPrivate == NULL)
return FALSE;
return TRUE;
@@ -493,7 +493,7 @@ NestedAddMode(ScrnInfoPtr pScrn, int width, int height) {
if (snprintf(nameBuf, 64, "%dx%d", width, height) >= 64)
return FALSE;
- mode = xnfcalloc(sizeof(DisplayModeRec), 1);
+ mode = XNFcallocarray(sizeof(DisplayModeRec), 1);
mode->status = MODE_OK;
mode->type = M_T_DRIVER;
mode->HDisplay = width;