diff options
author | Enrico Weigelt, metux IT consult <info@metux.net> | 2024-05-08 16:17:48 +0200 |
---|---|---|
committer | Enrico Weigelt, metux IT consult <info@metux.net> | 2024-05-08 16:17:48 +0200 |
commit | 525e7c3eb2eda75bb3f829896c41c46cb5a47019 (patch) | |
tree | 103279306dd342e840068da1bff5d867a3a35af9 | |
parent | ebf3e47c68089d7af6fb6971bdd33185ba83678c (diff) |
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>
-rw-r--r-- | src/driver.c | 4 |
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; |