mirror of
https://github.com/X11Libre/xf86-video-nested.git
synced 2026-03-24 01:24:18 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user