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>
This commit is contained in:
Enrico Weigelt, metux IT consult
2024-05-08 16:17:48 +02:00
parent ebf3e47c68
commit 525e7c3eb2

View File

@@ -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;